Address unexpected_cfgs warnings instead of allowing the lint (#243)

This commit is contained in:
Urgau 2024-05-24 21:21:58 +02:00 committed by GitHub
parent 89885d160a
commit f9f7bb10b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,9 @@ nightly_docs = []
[dependencies] [dependencies]
bytemuck_derive = { version = "1.4", path = "derive", optional = true } 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] [package.metadata.docs.rs]
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too. # Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
features = [ features = [

View File

@ -1,6 +1,5 @@
#![no_std] #![no_std]
#![warn(missing_docs)] #![warn(missing_docs)]
#![allow(unexpected_cfgs)]
#![allow(clippy::match_like_matches_macro)] #![allow(clippy::match_like_matches_macro)]
#![allow(clippy::uninlined_format_args)] #![allow(clippy::uninlined_format_args)]
#![cfg_attr(feature = "nightly_docs", feature(doc_cfg))] #![cfg_attr(feature = "nightly_docs", feature(doc_cfg))]