use String::default() for empty strings
as suggested by diamante quality control ™️
This commit is contained in:
parent
9a9e64fb0e
commit
806118862f
@ -47,6 +47,6 @@ pub async fn download_file(
|
|||||||
pb.set_position(new);
|
pb.set_position(new);
|
||||||
}
|
}
|
||||||
|
|
||||||
pb.set_message("");
|
pb.set_message(String::default());
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -442,7 +442,7 @@ async fn main() {
|
|||||||
cfg.args = pass;
|
cfg.args = pass;
|
||||||
arg_remove_value(&mut args, "--pass");
|
arg_remove_value(&mut args, "--pass");
|
||||||
} else if cfg.args.is_empty() {
|
} 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());
|
let games_json = http::get_body_string(format!("{}/games.json", MASTER).as_str());
|
||||||
|
@ -32,7 +32,7 @@ impl Default for Config {
|
|||||||
download_bonus_content: false,
|
download_bonus_content: false,
|
||||||
ask_bonus_content: true,
|
ask_bonus_content: true,
|
||||||
force_update: false,
|
force_update: false,
|
||||||
args: String::from(""),
|
args: String::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user