Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0b6e6e3

Browse files
committed
Formatting
1 parent 7cefa8f commit 0b6e6e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

library/std/src/sync/rwlock.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ impl<T> From<T> for RwLock<T> {
511511

512512
impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T> {
513513
unsafe fn new(lock: &'rwlock RwLock<T>) -> LockResult<RwLockReadGuard<'rwlock, T>> {
514-
poison::map_result(lock.poison.borrow(), |()| RwLockReadGuard { inner_lock: &lock.inner, data: &*lock.data.get() })
514+
poison::map_result(lock.poison.borrow(), |()| RwLockReadGuard {
515+
inner_lock: &lock.inner,
516+
data: &*lock.data.get()
517+
})
515518
}
516519
}
517520

library/std/src/sync/rwlock/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::sync::atomic::{AtomicUsize, Ordering};
22
use crate::sync::mpsc::channel;
3-
use crate::sync::{Arc, RwLock, TryLockError, RwLockReadGuard};
3+
use crate::sync::{Arc, RwLock, RwLockReadGuard, TryLockError};
44
use crate::thread;
55
use rand::{self, Rng};
66

0 commit comments

Comments
 (0)