diff options
author | Aleksey Kladov <[email protected]> | 2018-10-15 19:54:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-15 19:54:12 +0100 |
commit | 7503c5528f20f7404bac6f70bcf2120edb54dc52 (patch) | |
tree | 24fcb97a156f01c38a3e3f5e6b6d031870bbcb43 /crates/ra_analysis/src/db/mod.rs | |
parent | 062019590d70279d82fef3a60a2caf9490f8b97b (diff) |
fix tests
Diffstat (limited to 'crates/ra_analysis/src/db/mod.rs')
-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<_>>(); |