Skip to content

Commit ba988e6

Browse files
committed
Do not hide elided lifetimes
1 parent b8e80d9 commit ba988e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssam/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ impl<F: AsRawFd> Device<F> {
216216
}
217217

218218
impl<F: AsRawFd + Read> Device<F> {
219-
pub fn events(&mut self) -> std::io::Result<EventStream<F>> {
219+
pub fn events(&'_ mut self) -> std::io::Result<EventStream<'_, F>> {
220220
EventStream::from_device(self)
221221
}
222222
}
223223

224224
impl<F: AsRawFd + AsyncRead + Unpin> Device<F> {
225-
pub fn events_async(&mut self) -> std::io::Result<AsyncEventStream<F>> {
225+
pub fn events_async(&'_ mut self) -> std::io::Result<AsyncEventStream<'_, F>> {
226226
AsyncEventStream::from_device(self)
227227
}
228228
}

0 commit comments

Comments
 (0)