Skip to content

Commit

Permalink
Merge c858d78 into a2cef6b
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 23, 2023
2 parents a2cef6b + c858d78 commit dcfd343
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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
6 changes: 3 additions & 3 deletions fluent-bundle/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ impl<'source> FluentValue<'source> {
M: MemoizerKind,
{
match (self, other) {
(&FluentValue::String(ref a), &FluentValue::String(ref b)) => a == b,
(&FluentValue::Number(ref a), &FluentValue::Number(ref b)) => a == b,
(&FluentValue::String(ref a), &FluentValue::Number(ref b)) => {
(FluentValue::String(a), FluentValue::String(b)) => a == b,
(FluentValue::Number(a), FluentValue::Number(b)) => a == b,
(FluentValue::String(a), FluentValue::Number(b)) => {
let cat = match a.as_ref() {
"zero" => PluralCategory::ZERO,
"one" => PluralCategory::ONE,
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 dcfd343

Please sign in to comment.