clippy autofix

This commit is contained in:
endernon 2025-01-03 15:12:26 +00:00
parent 658b9b758e
commit e2b188c982

View file

@ -165,9 +165,7 @@ fn cook(
ItemTypeDeser::CraftedGear => { ItemTypeDeser::CraftedGear => {
if let Some(real_dura) = json_config.durability { if let Some(real_dura) = json_config.durability {
let resulted = encode_duradata(&mut fr_params, real_dura); let resulted = encode_duradata(&mut fr_params, real_dura);
if let Err(e) = resulted { resulted?
return Err(e)
}
} }
else { else {
return Err(Errorfr::JsonNotFoundDura) return Err(Errorfr::JsonNotFoundDura)