mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed redundant to_string() call.
This commit is contained in:
parent
c8a1d821e7
commit
cd5aa2d1d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user