refactor: split at whitespace #1 #15
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m15s

This commit is contained in:
Christoph J. Scherr 2024-05-13 16:29:17 +02:00
parent 00c6b35ef3
commit 585bb41a9d

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());
}
}