From 847b65f3b07af1d5bae4a504053fa1b22bbd281e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 14 Nov 2016 15:01:00 +0100 Subject: [PATCH] We dont need to clone() here --- libimagstore/src/toml_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/toml_ext.rs b/libimagstore/src/toml_ext.rs index 97d261d1..c6452aa1 100644 --- a/libimagstore/src/toml_ext.rs +++ b/libimagstore/src/toml_ext.rs @@ -294,7 +294,7 @@ fn setup<'a>(v: &'a mut Value, spec: &str, sep: char) debug!("destination = {:?}", destination); let path_to_dest : Vec = tokens[..(tokens.len() - 1)].into(); // N - 1 tokens - let value = try!(walk_header(v, path_to_dest.clone())); // walk N-1 tokens + let value = try!(walk_header(v, path_to_dest)); // walk N-1 tokens debug!("walked value = {:?}", value);