From e2b188c98234266b246e25ce913d7c8ce4137be6 Mon Sep 17 00:00:00 2001 From: endernon Date: Fri, 3 Jan 2025 15:12:26 +0000 Subject: [PATCH] clippy autofix --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c1a2fd1..38bdd60 100644 --- a/src/main.rs +++ b/src/main.rs @@ -165,9 +165,7 @@ fn cook( ItemTypeDeser::CraftedGear => { if let Some(real_dura) = json_config.durability { let resulted = encode_duradata(&mut fr_params, real_dura); - if let Err(e) = resulted { - return Err(e) - } + resulted? } else { return Err(Errorfr::JsonNotFoundDura)