chore: fmt

This commit is contained in:
Mona Lisa 2024-03-15 23:01:30 +08:00
parent 864344addb
commit 998bcf606a

View file

@ -31,7 +31,6 @@ pub struct Storage<DB: HasJars> {
/// The runtime for this particular salsa database handle.
/// Each handle gets its own runtime, but the runtimes have shared state between them.
runtime: Runtime,
}
/// Data shared between all threads.
@ -51,7 +50,7 @@ struct Shared<DB: HasJars> {
cvar: Arc<Condvar>,
/// Mutex that is used to protect the `jars` field when waiting for snapshots to be dropped.
noti_lock:Arc< parking_lot::Mutex<()>>
noti_lock: Arc<parking_lot::Mutex<()>>,
}
// ANCHOR: default
@ -66,7 +65,7 @@ where
shared: Shared {
jars: Some(Arc::from(jars)),
cvar: Arc::new(Default::default()),
noti_lock:Arc::new( parking_lot::Mutex::new(()))
noti_lock: Arc::new(parking_lot::Mutex::new(())),
},
routes: Arc::new(routes),
runtime: Runtime::default(),
@ -169,7 +168,7 @@ where
Self {
jars: self.jars.clone(),
cvar: self.cvar.clone(),
noti_lock: self.noti_lock.clone()
noti_lock: self.noti_lock.clone(),
}
}
}