Improve i18n "get" performances by returning a &str

This commit is contained in:
Rémy PHELIPOT
2020-01-21 21:05:02 +01:00
parent 8aa1970fdf
commit f60a68d96d
6 changed files with 14 additions and 12 deletions

View File

@ -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.