parent
7fde48cc37
commit
7450393e97
1 changed files with 2 additions and 3 deletions
|
|
@ -26,13 +26,12 @@ struct Item {
|
||||||
impl Hash for Item {
|
impl Hash for Item {
|
||||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||||
self.appid.hash(state);
|
self.appid.hash(state);
|
||||||
self.src.hash(state);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PartialEq for Item {
|
impl PartialEq for Item {
|
||||||
fn eq(&self, other: &Self) -> bool {
|
fn eq(&self, other: &Self) -> bool {
|
||||||
self.appid == other.appid && self.src == other.src
|
self.appid == other.appid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -143,7 +142,7 @@ impl<W: AsyncWrite + Unpin> App<W> {
|
||||||
src,
|
src,
|
||||||
};
|
};
|
||||||
|
|
||||||
deduplicator.insert(item);
|
deduplicator.replace(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue