From 7503c5528f20f7404bac6f70bcf2120edb54dc52 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Oct 2018 21:54:12 +0300 Subject: fix tests --- crates/ra_analysis/src/db/mod.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'crates/ra_analysis/src/db/mod.rs') diff --git a/crates/ra_analysis/src/db/mod.rs b/crates/ra_analysis/src/db/mod.rs index c84bfa7a8..081510daa 100644 --- a/crates/ra_analysis/src/db/mod.rs +++ b/crates/ra_analysis/src/db/mod.rs @@ -61,21 +61,12 @@ salsa::query_group! { } } -#[derive(Default, Debug)] +#[derive(Default, Debug, PartialEq, 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 - } -} - -impl Eq for FileSet { -} - impl Hash for FileSet { fn hash(&self, hasher: &mut H) { let mut files = self.files.iter().cloned().collect::>(); -- cgit v1.2.3