From f9f7bb10b39d98d3a1629ade0280a02ece5c32d4 Mon Sep 17 00:00:00 2001 From: Urgau <3616612+Urgau@users.noreply.github.com> Date: Fri, 24 May 2024 21:21:58 +0200 Subject: [PATCH] Address `unexpected_cfgs` warnings instead of allowing the lint (#243) --- Cargo.toml | 3 +++ src/lib.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bde2736..05a2715 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [ diff --git a/src/lib.rs b/src/lib.rs index 6474817..3966627 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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))]