Skip to content

Commit c40a82b

Browse files
committed
chore: Fix nightly lint
"lifetime flowing from input to output with different syntax can be confusing"
1 parent 034166c commit c40a82b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/handlers.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub(crate) enum ListenType<'a> {
2121
/// Handles some type of notification
2222
pub(crate) trait Handler {
2323
/// List of FDs that needs to be monitored for this listener
24-
fn monitored(&self) -> ListenType;
24+
fn monitored(&self) -> ListenType<'_>;
2525
/// Called on change of the monitored thing
2626
fn process(&mut self, state: &mut State, dur: &Duration) -> anyhow::Result<()>;
2727
}
@@ -60,7 +60,7 @@ mod ev_dev {
6060
}
6161

6262
impl Handler for EvDevListener {
63-
fn monitored(&self) -> ListenType {
63+
fn monitored(&self) -> ListenType<'_> {
6464
ListenType::Fd(self.dev.file().as_fd())
6565
}
6666

@@ -125,7 +125,7 @@ mod fs_change {
125125
}
126126

127127
impl Handler for HwChangeListener {
128-
fn monitored(&self) -> ListenType {
128+
fn monitored(&self) -> ListenType<'_> {
129129
ListenType::Path(self.path.as_path())
130130
}
131131

@@ -150,7 +150,7 @@ mod fs_change {
150150
}
151151

152152
impl Handler for SwChangeListener {
153-
fn monitored(&self) -> ListenType {
153+
fn monitored(&self) -> ListenType<'_> {
154154
ListenType::Path(self.path.as_path())
155155
}
156156

0 commit comments

Comments
 (0)