Skip to content

Commit 9c19032

Browse files
committed
simplify SourceID Hash
1 parent c8a9119 commit 9c19032

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cargo/core/source_id.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,7 @@ impl fmt::Display for SourceId {
675675
impl Hash for SourceId {
676676
fn hash<S: hash::Hasher>(&self, into: &mut S) {
677677
self.inner.kind.hash(into);
678-
match self.inner.kind {
679-
SourceKind::Git(_) => self.inner.canonical_url.hash(into),
680-
_ => self.inner.url.as_str().hash(into),
681-
}
678+
self.inner.canonical_url.hash(into);
682679
}
683680
}
684681

0 commit comments

Comments
 (0)