Skip to content

Commit

Permalink
refactor(fluent-bundle): Combine Scope lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperDeSutter authored and alerque committed May 6, 2024
1 parent ba6e49f commit c3d159b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fluent-bundle/src/resolver/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use crate::types::FluentValue;

const MAX_PLACEABLES: u8 = 100;

pub fn write_pattern<'bundle, 'other, W, R, M>(
pub fn write_pattern<'bundle, W, R, M>(
pattern: &'bundle ast::Pattern<&'bundle str>,
w: &mut W,
scope: &mut Scope<'bundle, 'other, R, M>,
scope: &mut Scope<'bundle, '_, R, M>,
) -> fmt::Result
where
W: fmt::Write,
Expand Down Expand Up @@ -66,9 +66,9 @@ where
Ok(())
}

pub fn resolve_pattern<'bundle, 'other, R, M>(
pub fn resolve_pattern<'bundle, R, M>(
pattern: &'bundle ast::Pattern<&'bundle str>,
scope: &mut Scope<'bundle, 'other, R, M>,
scope: &mut Scope<'bundle, '_, R, M>,
) -> FluentValue<'bundle>
where
R: Borrow<FluentResource>,
Expand Down

0 comments on commit c3d159b

Please sign in to comment.