Skip to content

Commit f2dcd76

Browse files
committed
libcore: Use is_none() in pipes
1 parent 303e105 commit f2dcd76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ fn send<T: send, Tbuffer: send>(+p: send_packet_buffered<T, Tbuffer>,
359359
let p_ = p.unwrap();
360360
let p = unsafe { &*p_ };
361361
assert ptr::addr_of(p.header) == header;
362-
assert p.payload == None;
362+
assert p.payload.is_none();
363363
p.payload <- Some(payload);
364364
let old_state = swap_state_rel(&mut p.header.state, full);
365365
match old_state {

0 commit comments

Comments
 (0)