1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints (unneeded String::from)

This commit is contained in:
Roy Ivy III 2019-12-28 12:04:04 -06:00
parent bf6368269c
commit 3da2a69e11
2 changed files with 2 additions and 2 deletions

View file

@ -186,7 +186,7 @@ pub fn dry_exec(mut tmpdir: PathBuf, prefix: &str, rand: usize, suffix: &str) ->
}
}
}
tmpdir.push(String::from(buf));
tmpdir.push(buf);
println!("{}", tmpdir.display());
0
}

View file

@ -249,7 +249,7 @@ fn create_word_set(
}
word_set.insert(WordRef {
word: word,
filename: String::from(file.clone()),
filename: file.clone(),
global_line_nr: offs + count,
local_line_nr: count,
position: beg,