aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-25 17:37:29 -0500
committermat <github@matdoes.dev>2022-06-25 17:37:29 -0500
commite8deda5d2e45eb634700614009cbcc5b35949e26 (patch)
treedab321d33c66e20e8b558d9777550a3d27cd4b59 /azalea-chat/src
parent978880b756aa052226f77c21e8e9de9b40070152 (diff)
downloadazalea-drasl-e8deda5d2e45eb634700614009cbcc5b35949e26.tar.xz
clippo
Diffstat (limited to 'azalea-chat/src')
-rwxr-xr-xazalea-chat/src/translatable_component.rs2
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();