We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9de9f9 commit a1c77a6Copy full SHA for a1c77a6
src/parking.rs
@@ -97,6 +97,12 @@ impl Drop for Parker {
97
}
98
99
100
+impl Default for Parker {
101
+ fn default() -> Parker {
102
+ Parker::new()
103
+ }
104
+}
105
+
106
impl fmt::Debug for Parker {
107
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
108
f.pad("Parker { .. }")
src/sys/kqueue.rs
@@ -95,15 +95,15 @@ impl Reactor {
95
libc::kevent {
96
ident: fd as _,
filter: libc::EVFILT_READ,
- flags: flags,
+ flags,
fflags: 0,
data: 0,
udata: 0 as _,
},
filter: libc::EVFILT_WRITE,
109
0 commit comments