Skip to content

Commit a1c77a6

Browse files
author
Stjepan Glavina
committed
Make clippy happy
1 parent a9de9f9 commit a1c77a6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/parking.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ impl Drop for Parker {
9797
}
9898
}
9999

100+
impl Default for Parker {
101+
fn default() -> Parker {
102+
Parker::new()
103+
}
104+
}
105+
100106
impl fmt::Debug for Parker {
101107
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
102108
f.pad("Parker { .. }")

src/sys/kqueue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ impl Reactor {
9595
libc::kevent {
9696
ident: fd as _,
9797
filter: libc::EVFILT_READ,
98-
flags: flags,
98+
flags,
9999
fflags: 0,
100100
data: 0,
101101
udata: 0 as _,
102102
},
103103
libc::kevent {
104104
ident: fd as _,
105105
filter: libc::EVFILT_WRITE,
106-
flags: flags,
106+
flags,
107107
fflags: 0,
108108
data: 0,
109109
udata: 0 as _,

0 commit comments

Comments
 (0)