aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/db/mod.rs
diff options
context:
space:
mode:
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<_>>();