Fixed redundant to_string() call.

This commit is contained in:
kaedr 2021-10-16 20:41:13 -04:00
parent c8a1d821e7
commit cd5aa2d1d8

View File

@ -137,7 +137,7 @@ impl PlayState for MainMenuState {
server::Error::Other(e) => localized_strings
.get("main.servers.other_error")
.to_owned()
.replace("{raw_error}", e.to_string().as_str()),
.replace("{raw_error}", e.as_str()),
};
global_state.info_message = Some(
localized_strings