From 27a085f79ef130132bacfa2e9da6f389e63c6b42 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 25 Jan 2019 21:10:28 +0300 Subject: print one size for symbols --- crates/ra_ide_api/src/symbol_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') 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 { } pub(crate) fn memory_size(&self) -> usize { - self.map.as_fst().size() * self.symbols.len() * mem::size_of::() + self.map.as_fst().size() + self.symbols.len() * mem::size_of::() } pub(crate) fn for_files( -- cgit v1.2.3