don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(lexicon): impl PartialEq for ObjectId and gix::ObjectId

Signed-off-by: tjh <x@tjh.dev>

tjh 9fc8316c b81bbf00

+7 -1
+7 -1
crates/gordian-lexicon/src/extra/objectid.rs
··· 46 46 } 47 47 } 48 48 49 + impl<E> PartialEq<gix_hash::ObjectId> for ObjectId<E> { 50 + fn eq(&self, other: &gix_hash::ObjectId) -> bool { 51 + self.inner.eq(other) 52 + } 53 + } 54 + 49 55 impl<E> fmt::Display for ObjectId<E> { 50 56 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 51 57 write!(f, "{}", self.inner.to_hex()) ··· 107 101 } 108 102 } 109 103 110 - impl FromStr for ObjectId<Hex> { 104 + impl<E> FromStr for ObjectId<E> { 111 105 type Err = gix_hash::decode::Error; 112 106 113 107 fn from_str(s: &str) -> Result<Self, Self::Err> {