Skip to content

Commit

Permalink
Mask clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Feb 10, 2025
1 parent 4a6c368 commit 15b8bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/fpga-regmap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ pub fn build_peripheral(
+ u32::try_from(*addr_offset).unwrap();
let struct_def = quote! {
pub struct #struct_name;
#[allow(dead_code)]
#[allow(dead_code, clippy::useless_conversion, clippy::unnecessary_cast)]
impl #struct_name {
const ADDR: *mut u32 = #reg_addr as *mut u32;
fn new() -> Self {
Expand All @@ -546,7 +546,7 @@ pub fn build_peripheral(
}

pub struct #handle_name(core::cell::Cell<u32>);
#[allow(dead_code)]
#[allow(dead_code, clippy::useless_conversion, clippy::unnecessary_cast)]
impl #handle_name {
fn get_raw(&self) -> u32 {
self.0.get()
Expand Down

0 comments on commit 15b8bfc

Please sign in to comment.