From 2268a2f8c6557301ecdcaeb4074331a0bd37dccd Mon Sep 17 00:00:00 2001 From: Alan Du Date: Wed, 17 Oct 2018 19:15:22 -0400 Subject: Silence clippy::derive_hash_xor_eq Manually implement PartialEq --- crates/ra_analysis/src/db.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_analysis/src/db.rs b/crates/ra_analysis/src/db.rs index 042dde1ac..99d40a269 100644 --- a/crates/ra_analysis/src/db.rs +++ b/crates/ra_analysis/src/db.rs @@ -76,12 +76,18 @@ salsa::query_group! { } } -#[derive(Default, Debug, PartialEq, Eq)] +#[derive(Default, Debug, Eq)] pub(crate) struct FileSet { pub(crate) files: FxHashSet, pub(crate) resolver: FileResolverImp, } +impl PartialEq for FileSet { + fn eq(&self, other: &FileSet) -> bool { + self.files == other.files && self.resolver == other.resolver + } +} + impl Hash for FileSet { fn hash(&self, hasher: &mut H) { let mut files = self.files.iter().cloned().collect::>(); -- cgit v1.2.3