Skip to content

Commit f93603b

Browse files
committed
take AsFd by value
1 parent 6d052a7 commit f93603b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl KEvent {
268268
}
269269

270270
pub fn kevent<Fd: AsFd>(
271-
kq: &Fd,
271+
kq: Fd,
272272
changelist: &[KEvent],
273273
eventlist: &mut [KEvent],
274274
timeout_ms: usize,
@@ -294,7 +294,7 @@ type type_of_nchanges = c_int;
294294
type type_of_nchanges = size_t;
295295

296296
pub fn kevent_ts<Fd: AsFd>(
297-
kq: &Fd,
297+
kq: Fd,
298298
changelist: &[KEvent],
299299
eventlist: &mut [KEvent],
300300
timeout_opt: Option<timespec>,

0 commit comments

Comments
 (0)