Resolve lints and format

This commit is contained in:
infogulch
2023-11-04 02:16:54 -05:00
parent dddffb01a6
commit 9444e62df9
58 changed files with 2521 additions and 2820 deletions

View File

@@ -6,7 +6,7 @@ use std::{
ptr::NonNull,
sync::{
atomic::{AtomicPtr, AtomicU8},
Arc, Weak, RwLock
Arc, RwLock, Weak,
},
};
@@ -52,7 +52,7 @@ impl<T> Rcu<T> {
// register the current threads epoch counter on init
EPOCH_COUNTERS
.write()
.unwrap()
.unwrap()
.push(Arc::downgrade(&epoch_counter));
epoch_counter
});