Add rustfmt from relibc and apply it with cargo fmt

This commit is contained in:
Jeremy Soller
2024-01-17 13:52:01 -07:00
parent 73897bd83d
commit 45f1c4e29e
166 changed files with 7353 additions and 3851 deletions
+6 -3
View File
@@ -8,14 +8,17 @@ use crate::sync::WaitCondition;
pub struct WaitMap<K, V> {
// Using BTreeMap as this depends on .keys() providing elements in sorted order.
pub inner: Mutex<BTreeMap<K, V>>,
pub condition: WaitCondition
pub condition: WaitCondition,
}
impl<K, V> WaitMap<K, V> where K: Clone + Ord {
impl<K, V> WaitMap<K, V>
where
K: Clone + Ord,
{
pub fn new() -> WaitMap<K, V> {
WaitMap {
inner: Mutex::new(BTreeMap::new()),
condition: WaitCondition::new()
condition: WaitCondition::new(),
}
}