Skip to content

Commit

Permalink
Merge pull request #1595 from sdroege/rust-1.80-clippy
Browse files Browse the repository at this point in the history
Allow `dead_code` lint for opaque structs
  • Loading branch information
sdroege committed Aug 5, 2024
2 parents 59451cd + ccb2e0e commit 0599607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen/sys/lib_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ fn generate_opaque_type(w: &mut dyn Write, name: &str) -> Result<()> {
writeln!(
w,
r#"#[repr(C)]
#[allow(dead_code)]
pub struct {name} {{
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
Expand Down

0 comments on commit 0599607

Please sign in to comment.