From 59a3ec5f33c25ce3f372bdb14a333e09ee613004 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 10 Mar 2020 14:55:23 +0100 Subject: :arrow_up: fst --- crates/ra_ide_db/Cargo.toml | 2 +- crates/ra_ide_db/src/symbol_index.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_ide_db') diff --git a/crates/ra_ide_db/Cargo.toml b/crates/ra_ide_db/Cargo.toml index 52f0f23df..de4f5bce0 100644 --- a/crates/ra_ide_db/Cargo.toml +++ b/crates/ra_ide_db/Cargo.toml @@ -13,7 +13,7 @@ wasm = [] [dependencies] log = "0.4.8" rayon = "1.3.0" -fst = { version = "0.3.5", default-features = false } +fst = { version = "0.4", default-features = false } rustc-hash = "1.1.0" superslice = "1.0.0" once_cell = "1.3.1" diff --git a/crates/ra_ide_db/src/symbol_index.rs b/crates/ra_ide_db/src/symbol_index.rs index e6b3126b6..884359ee3 100644 --- a/crates/ra_ide_db/src/symbol_index.rs +++ b/crates/ra_ide_db/src/symbol_index.rs @@ -163,7 +163,7 @@ pub fn index_resolve(db: &RootDatabase, name_ref: &ast::NameRef) -> Vec, - map: fst::Map, + map: fst::Map>, } impl fmt::Debug for SymbolIndex { @@ -221,7 +221,7 @@ impl SymbolIndex { builder.insert(key, value).unwrap(); } - let map = fst::Map::from_bytes(builder.into_inner().unwrap()).unwrap(); + let map = fst::Map::new(builder.into_inner().unwrap()).unwrap(); SymbolIndex { symbols, map } } -- cgit v1.2.3