Remove unnecessary allocations
This commit is contained in:
parent
423e17b9df
commit
fe256f8140
5 changed files with 5 additions and 5 deletions
|
@ -918,7 +918,7 @@ mod tests {
|
|||
let prog = pwd_cmd().cwd(&parent_dir).spawn().unwrap();
|
||||
|
||||
let output = String::from_utf8(prog.wait_with_output().unwrap().output).unwrap();
|
||||
let child_dir = Path::new(output.as_slice().trim().into_string());
|
||||
let child_dir = Path::new(output.as_slice().trim());
|
||||
|
||||
let parent_stat = parent_dir.stat().unwrap();
|
||||
let child_stat = child_dir.stat().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue