diff options
Diffstat (limited to 'crates/ra_analysis/src/db')
-rw-r--r-- | crates/ra_analysis/src/db/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
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! { | |||
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||
64 | #[derive(Default, Debug)] | 64 | #[derive(Default, Debug, PartialEq, Eq)] |
65 | pub(crate) struct FileSet { | 65 | pub(crate) struct FileSet { |
66 | pub(crate) files: FxHashSet<FileId>, | 66 | pub(crate) files: FxHashSet<FileId>, |
67 | pub(crate) resolver: FileResolverImp, | 67 | pub(crate) resolver: FileResolverImp, |
68 | } | 68 | } |
69 | 69 | ||
70 | impl PartialEq for FileSet { | ||
71 | fn eq(&self, other: &FileSet) -> bool { | ||
72 | self.files == other.files | ||
73 | } | ||
74 | } | ||
75 | |||
76 | impl Eq for FileSet { | ||
77 | } | ||
78 | |||
79 | impl Hash for FileSet { | 70 | impl Hash for FileSet { |
80 | fn hash<H: Hasher>(&self, hasher: &mut H) { | 71 | fn hash<H: Hasher>(&self, hasher: &mut H) { |
81 | let mut files = self.files.iter().cloned().collect::<Vec<_>>(); | 72 | let mut files = self.files.iter().cloned().collect::<Vec<_>>(); |