Skip to content

Commit dcff605

Browse files
committed
Clippy cleanups
1 parent ad8fbc5 commit dcff605

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fluent-bundle/src/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::bundle::FluentBundle;
99
use crate::resource::FluentResource;
1010
use crate::types::FluentValue;
1111

12-
pub type FluentFunction<'bundle> = Box<
12+
pub type FluentFunction<'bundle> = Box<dyn
1313
'bundle
1414
+ for<'a> Fn(&[FluentValue<'a>], &HashMap<&str, FluentValue<'a>>) -> FluentValue<'a>
1515
+ Send

fluent-bundle/src/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ where
106106
return match value.elements[0] {
107107
ast::PatternElement::TextElement(s) => FluentValue::String(s.into()),
108108
ast::PatternElement::Placeable(ref p) => {
109-
scope.track(entry.clone(), |scope| p.resolve(scope))
109+
scope.track(entry, |scope| p.resolve(scope))
110110
}
111111
};
112112
}
@@ -118,7 +118,7 @@ where
118118
string.push_str(&s);
119119
}
120120
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));
122122
string.push_str(&result.to_string());
123123
}
124124
}

0 commit comments

Comments
 (0)