We dont need to clone() here

This commit is contained in:
Matthias Beyer 2016-11-14 15:01:00 +01:00
parent 6f79e6e007
commit 847b65f3b0

View file

@ -294,7 +294,7 @@ fn setup<'a>(v: &'a mut Value, spec: &str, sep: char)
debug!("destination = {:?}", destination); debug!("destination = {:?}", destination);
let path_to_dest : Vec<Token> = tokens[..(tokens.len() - 1)].into(); // N - 1 tokens let path_to_dest : Vec<Token> = 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); debug!("walked value = {:?}", value);