aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/db.rs')
-rw-r--r--crates/ra_ide_api/src/db.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs
index 4c5159d61..afd9022ce 100644
--- a/crates/ra_ide_api/src/db.rs
+++ b/crates/ra_ide_api/src/db.rs
@@ -1,4 +1,4 @@
1use std::{sync::Arc, time}; 1use std::sync::Arc;
2 2
3use ra_db::{ 3use ra_db::{
4 salsa::{self, Database, Durability}, 4 salsa::{self, Database, Durability},
@@ -25,8 +25,8 @@ pub(crate) struct RootDatabase {
25 runtime: salsa::Runtime<RootDatabase>, 25 runtime: salsa::Runtime<RootDatabase>,
26 pub(crate) feature_flags: Arc<FeatureFlags>, 26 pub(crate) feature_flags: Arc<FeatureFlags>,
27 pub(crate) debug_data: Arc<DebugData>, 27 pub(crate) debug_data: Arc<DebugData>,
28 pub(crate) last_gc: time::Instant, 28 pub(crate) last_gc: crate::wasm_shims::Instant,
29 pub(crate) last_gc_check: time::Instant, 29 pub(crate) last_gc_check: crate::wasm_shims::Instant,
30} 30}
31 31
32impl hir::debug::HirDebugHelper for RootDatabase { 32impl hir::debug::HirDebugHelper for RootDatabase {
@@ -69,8 +69,8 @@ impl RootDatabase {
69 pub fn new(lru_capacity: Option<usize>, feature_flags: FeatureFlags) -> RootDatabase { 69 pub fn new(lru_capacity: Option<usize>, feature_flags: FeatureFlags) -> RootDatabase {
70 let mut db = RootDatabase { 70 let mut db = RootDatabase {
71 runtime: salsa::Runtime::default(), 71 runtime: salsa::Runtime::default(),
72 last_gc: time::Instant::now(), 72 last_gc: crate::wasm_shims::Instant::now(),
73 last_gc_check: time::Instant::now(), 73 last_gc_check: crate::wasm_shims::Instant::now(),
74 feature_flags: Arc::new(feature_flags), 74 feature_flags: Arc::new(feature_flags),
75 debug_data: Default::default(), 75 debug_data: Default::default(),
76 }; 76 };