From 2cb1664cf6141a6d8492f58892badbdee6cae4c3 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 17 Sep 2024 13:04:35 +0200 Subject: [PATCH] `rustfmt`: Run on `sync/fairrwlock.rs` --- lightning/src/sync/fairrwlock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/sync/fairrwlock.rs b/lightning/src/sync/fairrwlock.rs index 23b8c23db..d97370090 100644 --- a/lightning/src/sync/fairrwlock.rs +++ b/lightning/src/sync/fairrwlock.rs @@ -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). -- 2.39.5