Skip to content

Commit 1e7efdd

Browse files
Eh2406ranger-ross
authored andcommitted
simplify SourceID Hash
1 parent 683c43f commit 1e7efdd

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)