From e0df9cfbc8544ad041cdcf01948b8ef59723b40d Mon Sep 17 00:00:00 2001 From: Anatol Ulrich <45840+spookyvision@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:47:26 +0200 Subject: [PATCH] Update platforms/allwinner-d1/d1-core/src/drivers/smhc.rs Co-authored-by: Eliza Weisman --- platforms/allwinner-d1/d1-core/src/drivers/smhc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platforms/allwinner-d1/d1-core/src/drivers/smhc.rs b/platforms/allwinner-d1/d1-core/src/drivers/smhc.rs index e7c2e5b8..6eee3a24 100644 --- a/platforms/allwinner-d1/d1-core/src/drivers/smhc.rs +++ b/platforms/allwinner-d1/d1-core/src/drivers/smhc.rs @@ -519,9 +519,7 @@ impl Smhc { self.smhc.smhc_resp2.read().bits(), self.smhc.smhc_resp3.read().bits(), ]; - // TODO warning: transmute used without annotations - #[allow(clippy::missing_transmute_annotations)] - Ok(sdmmc::Response::Long(unsafe { core::mem::transmute(rsp) })) + Ok(sdmmc::Response::Long(unsafe { core::mem::transmute::<[u32; 4], u128>(rsp) })) } else { Ok(sdmmc::Response::Short { value: self.smhc.smhc_resp0.read().bits(),