diff options
Diffstat (limited to 'azalea-chat/src/translatable_component.rs')
| -rwxr-xr-x | azalea-chat/src/translatable_component.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-chat/src/translatable_component.rs b/azalea-chat/src/translatable_component.rs index fdef6465..6ffc5ccf 100755 --- a/azalea-chat/src/translatable_component.rs +++ b/azalea-chat/src/translatable_component.rs @@ -25,7 +25,7 @@ impl TranslatableComponent { } pub fn read(&self) -> Result<String, fmt::Error> { - let template = azalea_language::get(&self.key).unwrap_or_else(|| &self.key); + let template = azalea_language::get(&self.key).unwrap_or(&self.key); // decode the % things let mut result = String::new(); |
