File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::bundle::FluentBundle;
9
9
use crate :: resource:: FluentResource ;
10
10
use crate :: types:: FluentValue ;
11
11
12
- pub type FluentFunction < ' bundle > = Box <
12
+ pub type FluentFunction < ' bundle > = Box < dyn
13
13
' bundle
14
14
+ for <' a > Fn ( & [ FluentValue < ' a > ] , & HashMap < & str , FluentValue < ' a > > ) -> FluentValue < ' a >
15
15
+ Send
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ where
106
106
return match value. elements [ 0 ] {
107
107
ast:: PatternElement :: TextElement ( s) => FluentValue :: String ( s. into ( ) ) ,
108
108
ast:: PatternElement :: Placeable ( ref p) => {
109
- scope. track ( entry. clone ( ) , |scope| p. resolve ( scope) )
109
+ scope. track ( entry, |scope| p. resolve ( scope) )
110
110
}
111
111
} ;
112
112
}
@@ -118,7 +118,7 @@ where
118
118
string. push_str ( & s) ;
119
119
}
120
120
ast:: PatternElement :: Placeable ( p) => {
121
- let result = scope. track ( entry. clone ( ) , |scope| p. resolve ( scope) ) ;
121
+ let result = scope. track ( entry, |scope| p. resolve ( scope) ) ;
122
122
string. push_str ( & result. to_string ( ) ) ;
123
123
}
124
124
}
You can’t perform that action at this time.
0 commit comments