From 1fd18f020dcf01a441925ac0a368a31f3ddf4047 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 25 Jan 2019 23:27:16 +0300 Subject: :arrow_up: salsa --- crates/ra_ide_api/src/imp.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_ide_api/src/imp.rs') diff --git a/crates/ra_ide_api/src/imp.rs b/crates/ra_ide_api/src/imp.rs index 961f7b230..bd9e3f1e3 100644 --- a/crates/ra_ide_api/src/imp.rs +++ b/crates/ra_ide_api/src/imp.rs @@ -5,7 +5,7 @@ use hir::{ }; use ra_db::{ FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase, - salsa::Database, + salsa::{Database, SweepStrategy}, }; use ra_ide_api_light::{self, assists, LocalEdit, Severity}; use ra_syntax::{ @@ -77,13 +77,13 @@ impl db::RootDatabase { /// for some reason. Needs investigation. pub(crate) fn collect_garbage(&mut self) { self.query(ra_db::SourceFileQuery) - .sweep(salsa::SweepStrategy::default().discard_values()); + .sweep(SweepStrategy::default().discard_values()); self.query(hir::db::HirSourceFileQuery) - .sweep(salsa::SweepStrategy::default().discard_values()); + .sweep(SweepStrategy::default().discard_values()); self.query(hir::db::FileItemsQuery) - .sweep(salsa::SweepStrategy::default().discard_values()); + .sweep(SweepStrategy::default().discard_values()); self.query(hir::db::FileItemQuery) - .sweep(salsa::SweepStrategy::default().discard_values()); + .sweep(SweepStrategy::default().discard_values()); } } -- cgit v1.2.3