mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-20 12:11:08 +00:00
refactor/polish ~ fix cargo clippy complaint (needless_collect)
This commit is contained in:
parent
4a041f95e3
commit
7b4d81efd4
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ static LONG_HELP: &str = "";
|
|||
static DEFAULT_TABSTOP: usize = 8;
|
||||
|
||||
fn tabstops_parse(s: String) -> Vec<usize> {
|
||||
let words = s.split(',').collect::<Vec<&str>>();
|
||||
let words = s.split(',');
|
||||
|
||||
let nums = words
|
||||
.into_iter()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ static VERSION: &str = env!("CARGO_PKG_VERSION");
|
|||
const DEFAULT_TABSTOP: usize = 8;
|
||||
|
||||
fn tabstops_parse(s: String) -> Vec<usize> {
|
||||
let words = s.split(',').collect::<Vec<&str>>();
|
||||
let words = s.split(',');
|
||||
|
||||
let nums = words
|
||||
.into_iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue