diff options
Diffstat (limited to 'crates/ra_analysis/src/db.rs')
-rw-r--r-- | crates/ra_analysis/src/db.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/db.rs b/crates/ra_analysis/src/db.rs index 7c28c9a2b..6b56f99ac 100644 --- a/crates/ra_analysis/src/db.rs +++ b/crates/ra_analysis/src/db.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | use std::sync::Arc; | 1 | use std::sync::Arc; |
2 | 2 | #[cfg(test)] | |
3 | use parking_lot::Mutex; | 3 | use parking_lot::Mutex; |
4 | use ra_editor::LineIndex; | 4 | use ra_editor::LineIndex; |
5 | use ra_syntax::{SourceFileNode, SyntaxNode}; | 5 | use ra_syntax::{SourceFileNode, SyntaxNode}; |
@@ -33,6 +33,7 @@ impl salsa::Database for RootDatabase { | |||
33 | &self.runtime | 33 | &self.runtime |
34 | } | 34 | } |
35 | 35 | ||
36 | #[allow(unused)] | ||
36 | fn salsa_event(&self, event: impl Fn() -> salsa::Event<RootDatabase>) { | 37 | fn salsa_event(&self, event: impl Fn() -> salsa::Event<RootDatabase>) { |
37 | #[cfg(test)] | 38 | #[cfg(test)] |
38 | { | 39 | { |