From aada8af28c396747aacd4be49f061973dd9898c0 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Thu, 19 Dec 2024 22:05:53 +0100 Subject: [PATCH] Elide unused named lifetimes --- src/completion/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/completion/history.rs b/src/completion/history.rs index fda3384f..a29e2b04 100644 --- a/src/completion/history.rs +++ b/src/completion/history.rs @@ -13,7 +13,7 @@ pub(crate) struct HistoryCompleter<'menu>(&'menu dyn History); // Safe to implement Send since the HistoryCompleter should only be used when // updating the menu and that must happen in the same thread -unsafe impl<'menu> Send for HistoryCompleter<'menu> {} +unsafe impl Send for HistoryCompleter<'_> {} fn search_unique( completer: &HistoryCompleter, @@ -30,7 +30,7 @@ fn search_unique( .filter(move |value| seen_matching_command_lines.insert(value.command_line.clone()))) } -impl<'menu> Completer for HistoryCompleter<'menu> { +impl Completer for HistoryCompleter<'_> { fn complete(&mut self, line: &str, pos: usize) -> Vec { match search_unique(self, line) { Err(_) => vec![],