Skip to content

Commit b6492f4

Browse files
committed
fmt
1 parent 95e333c commit b6492f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ impl RwLock {
218218
#[inline]
219219
pub unsafe fn try_upgrade(&self) -> bool {
220220
debug_assert!(
221-
is_read_locked(self.state), "\
222-
RwLock must be read locked to call `try_upgrade`"
221+
is_read_locked(self.state),
222+
"RwLock must be read locked to call `try_upgrade`"
223223
);
224224
self.state.compare_exchange(READ_LOCKED, WRITE_LOCKED, Acquire, Relaxed).is_ok()
225225
}

0 commit comments

Comments
 (0)