From 98224cf91337aa312b72de87ea4c1b22794619b2 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 15 Oct 2022 16:53:34 -0500 Subject: fix clippy warnings --- azalea-world/src/entity/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-world/src/entity') diff --git a/azalea-world/src/entity/data.rs b/azalea-world/src/entity/data.rs index 3fd07ecb..0f90c790 100644 --- a/azalea-world/src/entity/data.rs +++ b/azalea-world/src/entity/data.rs @@ -110,7 +110,7 @@ impl McBufReadable for EntityDataValue { if val == 0 { None } else { - Some((val - 1) as u32) + Some(val - 1) } }), 18 => EntityDataValue::Pose(Pose::read_from(buf)?), -- cgit v1.2.3