generated from PlexSheep/rs-base
refactor: split at whitespace #1 #15
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m15s
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m15s
This commit is contained in:
parent
00c6b35ef3
commit
585bb41a9d
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue