From 55ba43de725338eb0062d1bcf949e0e79e4ebce4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Jun 2021 17:37:23 +0200 Subject: Fix clippy: Use &str instead of &String as argument Signed-off-by: Matthias Beyer --- src/source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/source.rs') 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()), -- cgit v1.2.3