use String::default() for empty strings

as suggested by diamante quality control ™️
This commit is contained in:
2023-11-02 11:27:43 +01:00
parent 9a9e64fb0e
commit 806118862f
3 changed files with 3 additions and 3 deletions

View File

@@ -442,7 +442,7 @@ async fn main() {
cfg.args = pass;
arg_remove_value(&mut args, "--pass");
} else if cfg.args.is_empty() {
cfg.args = String::from("");
cfg.args = String::default();
}
let games_json = http::get_body_string(format!("{}/games.json", MASTER).as_str());