From e8deda5d2e45eb634700614009cbcc5b35949e26 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 25 Jun 2022 17:37:29 -0500 Subject: clippo --- azalea-chat/src/translatable_component.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-chat/src') 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 { - 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(); -- cgit v1.2.3