diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api/src/symbol_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/symbol_index.rs b/crates/ra_ide_api/src/symbol_index.rs index 6baeabde6..6184ad3ec 100644 --- a/crates/ra_ide_api/src/symbol_index.rs +++ b/crates/ra_ide_api/src/symbol_index.rs | |||
@@ -138,7 +138,7 @@ impl SymbolIndex { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | pub(crate) fn memory_size(&self) -> usize { | 140 | pub(crate) fn memory_size(&self) -> usize { |
141 | self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>() | 141 | self.map.as_fst().size() + self.symbols.len() * mem::size_of::<FileSymbol>() |
142 | } | 142 | } |
143 | 143 | ||
144 | pub(crate) fn for_files( | 144 | pub(crate) fn for_files( |