Skip to content

Commit 55ba43d

Browse files
matthiasbeyerszarykott
authored andcommitted
Fix clippy: Use &str instead of &String as argument
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 1a7ca3c commit 55ba43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub trait Source: Debug {
2626
}
2727
}
2828

29-
fn set_value(cache: &mut Value, key: &String, value: &Value) {
29+
fn set_value(cache: &mut Value, key: &str, value: &Value) {
3030
match path::Expression::from_str(key) {
3131
// Set using the path
3232
Ok(expr) => expr.set(cache, value.clone()),

0 commit comments

Comments
 (0)