Skip to content

Commit

Permalink
final set of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s4h committed Sep 3, 2024
1 parent 33077d6 commit 870bf7b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ internal-tests = [
]

[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(docs)'] }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docs)'] }

[dev-dependencies]
safer-ffi.path = "."
Expand Down
1 change: 1 addition & 0 deletions src/proc_macro/derives/c_type/struct_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use super::*;

#[allow(unexpected_cfgs)]
pub(in crate)
fn derive (
args: Args,
Expand Down
1 change: 1 addition & 0 deletions src/proc_macro/derives/dyn_trait/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ define_kws! {$

pub
struct Args {
#[allow(dead_code)]
pub dyn_: sym![dyn],
pub clone: Option<sym![Clone]>,
}
Expand Down
1 change: 1 addition & 0 deletions src/proc_macro/ffi_export/const_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl Parse for Args {
}


#[allow(unexpected_cfgs)]
pub(in super)
fn handle (
Args { untyped }: Args,
Expand Down

0 comments on commit 870bf7b

Please sign in to comment.