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 b8e80d9 commit ba988e6Copy full SHA for ba988e6
ssam/src/lib.rs
@@ -216,13 +216,13 @@ impl<F: AsRawFd> Device<F> {
216
}
217
218
impl<F: AsRawFd + Read> Device<F> {
219
- pub fn events(&mut self) -> std::io::Result<EventStream<F>> {
+ pub fn events(&'_ mut self) -> std::io::Result<EventStream<'_, F>> {
220
EventStream::from_device(self)
221
222
223
224
impl<F: AsRawFd + AsyncRead + Unpin> Device<F> {
225
- pub fn events_async(&mut self) -> std::io::Result<AsyncEventStream<F>> {
+ pub fn events_async(&'_ mut self) -> std::io::Result<AsyncEventStream<'_, F>> {
226
AsyncEventStream::from_device(self)
227
228
0 commit comments