summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/source.rs2
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()),