mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
rustfmt
This commit is contained in:
parent
159a03ad7b
commit
0a6197df97
21 changed files with 128 additions and 365 deletions
|
@ -12,10 +12,7 @@ pub struct Storage<DB: DatabaseStorageTypes> {
|
|||
|
||||
impl<DB: DatabaseStorageTypes> Default for Storage<DB> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
query_store: Default::default(),
|
||||
runtime: Default::default(),
|
||||
}
|
||||
Self { query_store: Default::default(), runtime: Default::default() }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,9 +48,6 @@ impl<DB: DatabaseStorageTypes> Storage<DB> {
|
|||
/// thread. Using two database handles from the **same thread** can lead to
|
||||
/// deadlock.
|
||||
pub fn snapshot(&self) -> Self {
|
||||
Storage {
|
||||
query_store: self.query_store.clone(),
|
||||
runtime: self.runtime.snapshot(),
|
||||
}
|
||||
Storage { query_store: self.query_store.clone(), runtime: self.runtime.snapshot() }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue