aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/db/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-15 19:54:12 +0100
committerAleksey Kladov <[email protected]>2018-10-15 19:54:12 +0100
commit7503c5528f20f7404bac6f70bcf2120edb54dc52 (patch)
tree24fcb97a156f01c38a3e3f5e6b6d031870bbcb43 /crates/ra_analysis/src/db/mod.rs
parent062019590d70279d82fef3a60a2caf9490f8b97b (diff)
fix tests
Diffstat (limited to 'crates/ra_analysis/src/db/mod.rs')
-rw-r--r--crates/ra_analysis/src/db/mod.rs11
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)]
65pub(crate) struct FileSet { 65pub(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
70impl PartialEq for FileSet {
71 fn eq(&self, other: &FileSet) -> bool {
72 self.files == other.files
73 }
74}
75
76impl Eq for FileSet {
77}
78
79impl Hash for FileSet { 70impl 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<_>>();