Skip to content

Commit 18f01fd

Browse files
matthiasbeyerszarykott
authored andcommitted
Fix clippy: Use to_string() instead of clone()
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 55ba43d commit 18f01fd

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
@@ -32,7 +32,7 @@ fn set_value(cache: &mut Value, key: &str, value: &Value) {
3232
Ok(expr) => expr.set(cache, value.clone()),
3333

3434
// Set diretly anyway
35-
_ => path::Expression::Identifier(key.clone()).set(cache, value.clone()),
35+
_ => path::Expression::Identifier(key.to_string()).set(cache, value.clone()),
3636
}
3737
}
3838

0 commit comments

Comments
 (0)