Skip to content

Commit aaf5e08

Browse files
committed
ui: buttons: fix clippy warning about confusing lifetimes
This feels like something where clippy suggested the exact opposite in the past, but I am not in the mood to argue. Fixes the following warnings: error: hiding a lifetime that's elided elsewhere is confusing --> src/ui/buttons.rs:41:29 | 41 | pub fn fetch_events(&mut self) -> Result<FetchEventsSynced, ()> { | ^^^^^^^^^ ----------------- the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]` help: use `'_` for type paths | 41 | pub fn fetch_events(&mut self) -> Result<FetchEventsSynced<'_>, ()> { | ++++ Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
1 parent f8bf928 commit aaf5e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/buttons.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod evd {
3838
Ok(Self {})
3939
}
4040

41-
pub fn fetch_events(&mut self) -> Result<FetchEventsSynced, ()> {
41+
pub fn fetch_events(&mut self) -> Result<FetchEventsSynced<'_>, ()> {
4242
loop {
4343
std::thread::park()
4444
}

0 commit comments

Comments
 (0)