parser : String::from("") -> String::default()

This commit is contained in:
Ahurac 2024-04-15 13:16:19 +02:00
parent 8d3241ecdc
commit 4f11bc71f6

View file

@ -35,7 +35,7 @@ fn parse_main(characters: &mut Vec<char>, current_arg: &mut String) -> Vec<Strin
if current_char.is_whitespace() {
if !current_arg.is_empty() {
let mut argv: Vec<String> = vec![current_arg.clone()];
argv.append(&mut parse_main(characters, &mut String::from("")));
argv.append(&mut parse_main(characters, &mut String::default()));
argv
} else {