refactor: split at whitespace #1 #15
cargo devel CI / cargo CI (push) Successful in 1m15s Details

This commit is contained in:
Christoph J. Scherr 2024-05-13 16:29:17 +02:00
parent 00c6b35ef3
commit 585bb41a9d
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ fn main() {
exit(1);
}
};
let whole = whole.replace('\n', "");
for s in whole.split(' ') {
let split = whole.split_whitespace();
for s in split {
args.push(s.to_string());
}
}