From c858d7858069d9ffdc599d1cdbe3010867fe51b0 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 23 Jul 2023 17:12:46 +0700 Subject: [PATCH] clippy: Remove some lifetimes. --- fluent-bundle/src/bundle.rs | 4 ++-- fluent-fallback/examples/simple-fallback.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fluent-bundle/src/bundle.rs b/fluent-bundle/src/bundle.rs index 0b74c22d..0dbb5b91 100644 --- a/fluent-bundle/src/bundle.rs +++ b/fluent-bundle/src/bundle.rs @@ -482,10 +482,10 @@ impl FluentBundle { /// /// assert_eq!(result, "Hello World!"); /// ``` - pub fn format_pattern<'bundle, 'args>( + pub fn format_pattern<'bundle>( &'bundle self, pattern: &'bundle ast::Pattern<&'bundle str>, - args: Option<&'args FluentArgs>, + args: Option<&FluentArgs>, errors: &mut Vec, ) -> Cow<'bundle, str> where diff --git a/fluent-fallback/examples/simple-fallback.rs b/fluent-fallback/examples/simple-fallback.rs index 7585a5d0..523013b6 100644 --- a/fluent-fallback/examples/simple-fallback.rs +++ b/fluent-fallback/examples/simple-fallback.rs @@ -66,7 +66,7 @@ fn get_available_locales() -> io::Result> { Ok(locales) } -fn resolve_app_locales<'l>(args: &[String]) -> Vec { +fn resolve_app_locales(args: &[String]) -> Vec { let default_locale = langid!("en-US"); let available = get_available_locales().expect("Retrieving available locales failed.");