From f2254c86d5ba12754259bf0ae483c6c8dc821aad Mon Sep 17 00:00:00 2001 From: dbydd <44134872+dbydd@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:51:09 +0800 Subject: [PATCH] Make compiler/Clippy happy (#174) --- src/lib.rs | 1 - src/registers/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a64afa0..bd8e4e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,6 @@ unused_import_braces, unused_lifetimes, unused_qualifications, - pointer_structural_match, missing_debug_implementations )] #![allow(clippy::missing_panics_doc)] diff --git a/src/registers/mod.rs b/src/registers/mod.rs index b192dbd..53f436f 100644 --- a/src/registers/mod.rs +++ b/src/registers/mod.rs @@ -76,7 +76,7 @@ where /// ``` pub unsafe fn new(mmio_base: usize, mapper: M) -> Self { let capability = Capability::new(mmio_base, &mapper); - let doorbell = doorbell::Doorbell::new(mmio_base, &capability, mapper.clone()); + let doorbell = Doorbell::new(mmio_base, &capability, mapper.clone()); let operational = Operational::new(mmio_base, capability.caplength.read_volatile(), &mapper); let port_register_set = PortRegisterSet::new(mmio_base, &capability, mapper.clone());