From 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 11 Nov 2024 00:24:27 +0100 Subject: refactor(ecs): fix clippy lints --- ecs/src/uid.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecs/src/uid.rs') diff --git a/ecs/src/uid.rs b/ecs/src/uid.rs index 56d84f9..0e5d88a 100644 --- a/ecs/src/uid.rs +++ b/ecs/src/uid.rs @@ -29,10 +29,11 @@ impl Uid let id_part = NEXT.fetch_add(1, Ordering::Relaxed); Self { - inner: ((id_part as u64) << 32) | kind as u64, + inner: (u64::from(id_part) << 32) | kind as u64, } } + #[must_use] pub fn kind(&self) -> Kind { // SAFETY: The kind bits cannot be invalid since they are set using the Kind enum -- cgit v1.2.3-18-g5258