Skip to content

Commit bfea7e8

Browse files
committed
Fix clippy error
1 parent 46930bc commit bfea7e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/shims/unix/unnamed_socket.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ use std::collections::VecDeque;
77
use std::io;
88
use std::io::ErrorKind;
99

10-
use libc::O_NONBLOCK;
11-
1210
use crate::concurrency::VClock;
1311
use crate::shims::files::{
1412
EvalContextExt as _, FileDescription, FileDescriptionRef, WeakFileDescriptionRef,
@@ -165,7 +163,7 @@ impl FileDescription for AnonSocket {
165163
if flag & o_nonblock == o_nonblock {
166164
// If there is O_NONBLOCK flag
167165
self.is_nonblock.set(true);
168-
flag &= !O_NONBLOCK;
166+
flag &= !o_nonblock;
169167
} else {
170168
// If there is no O_NONBLOCK flag
171169
self.is_nonblock.set(false);

0 commit comments

Comments
 (0)