Skip to content

Commit 8f42d5f

Browse files
committed
remove unused struct Snap in lsif
1 parent 2397e7a commit 8f42d5f

File tree

1 file changed

+0
-9
lines changed
  • crates/rust-analyzer/src/cli

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use ide::{
88
StaticIndex, StaticIndexedFile, TokenId, TokenStaticData,
99
};
1010
use ide_db::{
11-
base_db::salsa::{self, ParallelDatabase},
1211
line_index::WideEncoding,
1312
LineIndexDatabase,
1413
};
@@ -25,14 +24,6 @@ use crate::{
2524
version::version,
2625
};
2726

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-
3627
struct LsifManager<'a> {
3728
count: i32,
3829
token_map: FxHashMap<TokenId, Id>,

0 commit comments

Comments
 (0)