Skip to content

Commit

Permalink
Address unexpected_cfgs warnings instead of allowing the lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed May 24, 2024
1 parent 89885d1 commit 497bab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ nightly_docs = []
[dependencies]
bytemuck_derive = { version = "1.4", path = "derive", optional = true }

[lints.rust]
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(target_arch, values("spirv"))'] }

[package.metadata.docs.rs]
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
features = [
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![no_std]
#![warn(missing_docs)]
#![allow(unexpected_cfgs)]
#![allow(clippy::match_like_matches_macro)]
#![allow(clippy::uninlined_format_args)]
#![cfg_attr(feature = "nightly_docs", feature(doc_cfg))]
Expand Down

0 comments on commit 497bab7

Please sign in to comment.