use String::default() for empty strings

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

View File

@ -47,6 +47,6 @@ pub async fn download_file(
pb.set_position(new);
}
pb.set_message("");
pb.set_message(String::default());
Ok(())
}

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

View File

@ -32,7 +32,7 @@ impl Default for Config {
download_bonus_content: false,
ask_bonus_content: true,
force_update: false,
args: String::from(""),
args: String::default(),
}
}
}