Skip to content

Commit d928563

Browse files
JasperDeSutteralerque
authored andcommitted
refactor(fluent-bundle): Combine Scope lifetimes
1 parent 7f3d848 commit d928563

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fluent-bundle/src/resolver/pattern.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ use crate::types::FluentValue;
1212

1313
const MAX_PLACEABLES: u8 = 100;
1414

15-
pub fn write_pattern<'bundle, W, R, M>(
15+
pub fn write_pattern<'bundle, 'other, W, R, M>(
1616
pattern: &'bundle ast::Pattern<&'bundle str>,
1717
w: &mut W,
18-
scope: &mut Scope<'bundle, '_, R, M>,
18+
scope: &mut Scope<'bundle, 'other, R, M>,
1919
) -> fmt::Result
2020
where
2121
W: fmt::Write,
@@ -66,9 +66,9 @@ where
6666
Ok(())
6767
}
6868

69-
pub fn resolve_pattern<'bundle, R, M>(
69+
pub fn resolve_pattern<'bundle, 'other, R, M>(
7070
pattern: &'bundle ast::Pattern<&'bundle str>,
71-
scope: &mut Scope<'bundle, '_, R, M>,
71+
scope: &mut Scope<'bundle, 'other, R, M>,
7272
) -> FluentValue<'bundle>
7373
where
7474
R: Borrow<FluentResource>,

0 commit comments

Comments
 (0)