ondra05 2022-07-24 22:24:53 +02:00
parent 53ff55f52d
commit 85870c3a3f
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ impl<T: PartialEq> PartialEq for Spanned<T> {
self.item == other.item
}
}
impl<T: Hash> Hash for Spanned<T> {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.item.hash(state);