Skip to content

Commit

Permalink
Update platforms/allwinner-d1/d1-core/src/drivers/smhc.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <[email protected]>
  • Loading branch information
spookyvision and hawkw authored Aug 13, 2024
1 parent fc69b5f commit e0df9cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions platforms/allwinner-d1/d1-core/src/drivers/smhc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit e0df9cf

Please sign in to comment.