Skip to content

Commit 79508d9

Browse files
committed
remove unused struct Snap in lsif
1 parent 2397e7a commit 79508d9

File tree

1 file changed

+1
-13
lines changed
  • crates/rust-analyzer/src/cli

1 file changed

+1
-13
lines changed

crates/rust-analyzer/src/cli/lsif.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ use ide::{
77
Analysis, AnalysisHost, FileId, FileRange, MonikerKind, PackageInformation, RootDatabase,
88
StaticIndex, StaticIndexedFile, TokenId, TokenStaticData,
99
};
10-
use ide_db::{
11-
base_db::salsa::{self, ParallelDatabase},
12-
line_index::WideEncoding,
13-
LineIndexDatabase,
14-
};
10+
use ide_db::{line_index::WideEncoding, LineIndexDatabase};
1511
use load_cargo::{load_workspace, LoadCargoConfig, ProcMacroServerChoice};
1612
use lsp_types::lsif;
1713
use project_model::{CargoConfig, ProjectManifest, ProjectWorkspace, RustLibSource};
@@ -25,14 +21,6 @@ use crate::{
2521
version::version,
2622
};
2723

28-
/// Need to wrap Snapshot to provide `Clone` impl for `map_with`
29-
struct Snap<DB>(DB);
30-
impl<DB: ParallelDatabase> Clone for Snap<salsa::Snapshot<DB>> {
31-
fn clone(&self) -> Snap<salsa::Snapshot<DB>> {
32-
Snap(self.0.snapshot())
33-
}
34-
}
35-
3624
struct LsifManager<'a> {
3725
count: i32,
3826
token_map: FxHashMap<TokenId, Id>,

0 commit comments

Comments
 (0)