refactor: split at whitespace #1
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-05-13 16:29:17 +02:00
parent 00c6b35ef3
commit b0a4ec1c11
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());
}
}