1
Fork 0
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:
Roy Ivy III 2020-10-10 13:29:37 -05:00
parent 4a041f95e3
commit 7b4d81efd4
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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()