mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify
This commit is contained in:
parent
85ff328d31
commit
fc31ddd303
2 changed files with 0 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
use std::{
|
||||
sync::{
|
||||
Arc,
|
||||
atomic::{AtomicBool, Ordering::SeqCst},
|
||||
},
|
||||
hash::{Hash, Hasher},
|
||||
fmt,
|
||||
|
@ -89,7 +88,6 @@ impl AnalysisHostImpl {
|
|||
}
|
||||
pub fn analysis(&self) -> AnalysisImpl {
|
||||
AnalysisImpl {
|
||||
needs_reindex: AtomicBool::new(false),
|
||||
data: self.data.clone(),
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +117,6 @@ impl AnalysisHostImpl {
|
|||
}
|
||||
|
||||
pub(crate) struct AnalysisImpl {
|
||||
needs_reindex: AtomicBool,
|
||||
data: WorldData,
|
||||
}
|
||||
|
||||
|
@ -129,15 +126,6 @@ impl fmt::Debug for AnalysisImpl {
|
|||
}
|
||||
}
|
||||
|
||||
impl Clone for AnalysisImpl {
|
||||
fn clone(&self) -> AnalysisImpl {
|
||||
AnalysisImpl {
|
||||
needs_reindex: AtomicBool::new(self.needs_reindex.load(SeqCst)),
|
||||
data: self.data.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl AnalysisImpl {
|
||||
fn root(&self, file_id: FileId) -> &SourceRoot {
|
||||
if self.data.root.contains(file_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue