From 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 22 Feb 2025 23:01:54 +0000 Subject: update to rust edition 2024 --- azalea-inventory/src/components.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'azalea-inventory/src/components.rs') diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 6dd60819..b299664f 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -42,10 +42,9 @@ where } fn eq(&self, other: Box) -> bool { let other_any: Box = other; - if let Some(other) = other_any.downcast_ref::() { - self == other - } else { - false + match other_any.downcast_ref::() { + Some(other) => self == other, + _ => false, } } } -- cgit v1.2.3