Skip to content

Commit 2892014

Browse files
waywardmonkeysalerque
authored andcommitted
refactor: Remove some lifetimes
1 parent febf0d0 commit 2892014

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fluent-bundle/src/bundle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ impl<R, M> FluentBundle<R, M> {
482482
///
483483
/// assert_eq!(result, "Hello World!");
484484
/// ```
485-
pub fn format_pattern<'bundle, 'args>(
485+
pub fn format_pattern<'bundle>(
486486
&'bundle self,
487487
pattern: &'bundle ast::Pattern<&'bundle str>,
488-
args: Option<&'args FluentArgs>,
488+
args: Option<&FluentArgs>,
489489
errors: &mut Vec<FluentError>,
490490
) -> Cow<'bundle, str>
491491
where

fluent-fallback/examples/simple-fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn get_available_locales() -> io::Result<Vec<LanguageIdentifier>> {
6666
Ok(locales)
6767
}
6868

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

0 commit comments

Comments
 (0)