Skip to content

Commit

Permalink
clippy: Remove some lifetimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 23, 2023
1 parent b25d4e9 commit c858d78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fluent-bundle/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,10 @@ impl<R, M> FluentBundle<R, M> {
///
/// 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<FluentError>,
) -> Cow<'bundle, str>
where
Expand Down
2 changes: 1 addition & 1 deletion fluent-fallback/examples/simple-fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn get_available_locales() -> io::Result<Vec<LanguageIdentifier>> {
Ok(locales)
}

fn resolve_app_locales<'l>(args: &[String]) -> Vec<LanguageIdentifier> {
fn resolve_app_locales(args: &[String]) -> Vec<LanguageIdentifier> {
let default_locale = langid!("en-US");
let available = get_available_locales().expect("Retrieving available locales failed.");

Expand Down

0 comments on commit c858d78

Please sign in to comment.