diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index 4f19b01c4..cccf0ada4 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs | |||
@@ -49,8 +49,9 @@ impl Default for RootDatabase { | |||
49 | db.set_crate_graph(Default::default()); | 49 | db.set_crate_graph(Default::default()); |
50 | db.set_local_roots(Default::default()); | 50 | db.set_local_roots(Default::default()); |
51 | db.set_library_roots(Default::default()); | 51 | db.set_library_roots(Default::default()); |
52 | db.query_mut(ra_db::ParseQuery).set_lru_capacity(128); | 52 | let lru_cap = ra_db::DEFAULT_LRU_CAP; |
53 | db.query_mut(hir::db::ParseMacroQuery).set_lru_capacity(128); | 53 | db.query_mut(ra_db::ParseQuery).set_lru_capacity(lru_cap); |
54 | db.query_mut(hir::db::ParseMacroQuery).set_lru_capacity(lru_cap); | ||
54 | db | 55 | db |
55 | } | 56 | } |
56 | } | 57 | } |