From c3d159b4e7aa6909c381efbb4afe4c9404825c76 Mon Sep 17 00:00:00 2001 From: JasperDeSutter Date: Thu, 22 Dec 2022 16:25:31 +0100 Subject: [PATCH] refactor(fluent-bundle): Combine Scope lifetimes --- fluent-bundle/src/resolver/pattern.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fluent-bundle/src/resolver/pattern.rs b/fluent-bundle/src/resolver/pattern.rs index 3c1ab4fa..1cb32031 100644 --- a/fluent-bundle/src/resolver/pattern.rs +++ b/fluent-bundle/src/resolver/pattern.rs @@ -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, @@ -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,