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:
parent
bf6368269c
commit
3da2a69e11
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue