Skip to content

Commit 26c35a4

Browse files
committed
format
1 parent e89f9c1 commit 26c35a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/std/src/sys/sync/rwlock/queue.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ const MASK: usize = !(QUEUE_LOCKED | QUEUED | LOCKED);
134134
#[inline]
135135
fn write_lock(state: State) -> Option<State> {
136136
let state = state.wrapping_byte_add(LOCKED);
137-
if state.addr() & LOCKED == LOCKED {
138-
Some(state)
139-
} else {
140-
None
141-
}
137+
if state.addr() & LOCKED == LOCKED { Some(state) } else { None }
142138
}
143139

144140
/// Marks the state as read-locked, if possible.

0 commit comments

Comments
 (0)