]> git.bitcoin.ninja Git - rust-lightning/commitdiff
`rustfmt`: Run on `sync/fairrwlock.rs`
authorElias Rohrer <dev@tnull.de>
Tue, 17 Sep 2024 11:04:35 +0000 (13:04 +0200)
committerElias Rohrer <dev@tnull.de>
Tue, 17 Sep 2024 11:04:35 +0000 (13:04 +0200)
lightning/src/sync/fairrwlock.rs

index 23b8c23db282b20ad5c90d3fc937e367e6b6dac6..d97370090cd229a269511a77884ddc23f8e8ae85 100644 (file)
@@ -1,6 +1,6 @@
-use std::sync::{LockResult, RwLock, RwLockReadGuard, RwLockWriteGuard, TryLockResult};
-use std::sync::atomic::{AtomicUsize, Ordering};
 use super::{LockHeldState, LockTestExt};
+use std::sync::atomic::{AtomicUsize, Ordering};
+use std::sync::{LockResult, RwLock, RwLockReadGuard, RwLockWriteGuard, TryLockResult};
 
 /// Rust libstd's RwLock does not provide any fairness guarantees (and, in fact, when used on
 /// Linux with pthreads under the hood, readers trivially and completely starve writers).