mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Improve i18n "get" performances by returning a &str
This commit is contained in:
@ -156,7 +156,7 @@ impl PlayState for MainMenuState {
|
||||
|
||||
if let Some(info) = global_state.info_message.take() {
|
||||
self.main_menu_ui
|
||||
.show_info(info, localized_strings.get("common.okay"));
|
||||
.show_info(info, localized_strings.get("common.okay").to_owned());
|
||||
}
|
||||
|
||||
// Draw the UI to the screen.
|
||||
|
Reference in New Issue
Block a user