Skip to content

Commit 06ec7a7

Browse files
committed
fmt
1 parent 3ef4b08 commit 06ec7a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: library/std/src/sync/rwlock.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,7 @@ impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T> {
590590
// SAFETY: if and only if `lock.inner.write()` (or `lock.inner.try_write()`) has been
591591
// successfully called from the same thread before instantiating this object.
592592
unsafe fn new(lock: &'rwlock RwLock<T>) -> LockResult<RwLockWriteGuard<'rwlock, T>> {
593-
poison::map_result(lock.poison.guard(), |guard| RwLockWriteGuard {
594-
lock,
595-
poison: guard,
596-
})
593+
poison::map_result(lock.poison.guard(), |guard| RwLockWriteGuard { lock, poison: guard })
597594
}
598595
}
599596

0 commit comments

Comments
 (0)