rustfmt: Run on sync/fairrwlock.rs

This commit is contained in:
Elias Rohrer 2024-09-17 13:04:35 +02:00
parent edcdc565c4
commit 2cb1664cf6
No known key found for this signature in database
GPG key ID: 36153082BDF676FD

View 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).