From bddd33de72756fd4cbe6d9b11e8737a1b88f96be Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 25 Jun 2025 21:20:19 +0200 Subject: [PATCH] uucore: fix clippy warnings - the following explicit lifetimes could be elided: 'a --- src/uucore/src/lib/features/quoting_style/shell_quoter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uucore/src/lib/features/quoting_style/shell_quoter.rs b/src/uucore/src/lib/features/quoting_style/shell_quoter.rs index d05dda52f..0fc5cd38c 100644 --- a/src/uucore/src/lib/features/quoting_style/shell_quoter.rs +++ b/src/uucore/src/lib/features/quoting_style/shell_quoter.rs @@ -51,7 +51,7 @@ impl<'a> NonEscapedShellQuoter<'a> { } } -impl<'a> Quoter for NonEscapedShellQuoter<'a> { +impl Quoter for NonEscapedShellQuoter<'_> { fn push_char(&mut self, input: char) { let escaped = EscapedChar::new_shell(input, false, self.quotes); @@ -133,7 +133,7 @@ impl<'a> EscapedShellQuoter<'a> { } } -impl<'a> Quoter for EscapedShellQuoter<'a> { +impl Quoter for EscapedShellQuoter<'_> { fn push_char(&mut self, input: char) { let escaped = EscapedChar::new_shell(input, true, self.quotes); match escaped.state {