diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-06-26 17:37:23 +0200 |
---|---|---|
committer | Radosław Kot <rdkt13@gmail.com> | 2021-07-03 20:30:21 +0200 |
commit | 55ba43de725338eb0062d1bcf949e0e79e4ebce4 (patch) | |
tree | 9d2b5870c878ca598dc2a29cc4dff35623814ba3 | |
parent | 1a7ca3c95d180f315bf68319f576470301848890 (diff) |
Fix clippy: Use &str instead of &String as argument
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source.rs b/src/source.rs index 8711e77..7781fc1 100644 --- a/src/source.rs +++ b/src/source.rs @@ -26,7 +26,7 @@ pub trait Source: Debug { } } -fn set_value(cache: &mut Value, key: &String, value: &Value) { +fn set_value(cache: &mut Value, key: &str, value: &Value) { match path::Expression::from_str(key) { // Set using the path Ok(expr) => expr.set(cache, value.clone()), |