Skip to content

Commit

Permalink
fix(gem-net): clippy::useless_conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed May 1, 2024
1 parent 6ab5317 commit 61a8617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/riscv64/kernel/devicetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub fn init_drivers() {
match gem::init_device(
VirtAddr(gem_region.starting_address as u64),
irq.try_into().unwrap(),
phy_addr.into(),
phy_addr,
<[u8; 6]>::try_from(mac).expect("MAC with invalid length"),
) {
Ok(drv) => register_driver(MmioDriver::GEMNet(
Expand Down

0 comments on commit 61a8617

Please sign in to comment.