equal
deleted
inserted
replaced
50 } |
50 } |
51 |
51 |
52 impl<T: AsRef<HgPath>> Borrow<HgPath> for WithBasename<T> { |
52 impl<T: AsRef<HgPath>> Borrow<HgPath> for WithBasename<T> { |
53 fn borrow(&self) -> &HgPath { |
53 fn borrow(&self) -> &HgPath { |
54 self.base_name() |
54 self.base_name() |
|
55 } |
|
56 } |
|
57 |
|
58 impl<T: AsRef<HgPath>> std::hash::Hash for WithBasename<T> { |
|
59 fn hash<H: std::hash::Hasher>(&self, hasher: &mut H) { |
|
60 self.base_name().hash(hasher) |
55 } |
61 } |
56 } |
62 } |
57 |
63 |
58 impl<T: AsRef<HgPath> + PartialEq> PartialEq for WithBasename<T> { |
64 impl<T: AsRef<HgPath> + PartialEq> PartialEq for WithBasename<T> { |
59 fn eq(&self, other: &Self) -> bool { |
65 fn eq(&self, other: &Self) -> bool { |