From 635e9c2df94d8879901ce6b24f87ee595d1f2540 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Mon, 3 Jun 2024 15:24:49 +0200 Subject: [PATCH] Don't `deny(warnings)` outside of CI This allows the tests to continue compiling in new Rust versions, even if new warnings are added. Fixes #2423. --- .github/workflows/ci.yml | 1 + src/lib.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02112713fa..31bc4db393 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ permissions: env: MSRV: 1.69.0 + RUSTFLAGS: -Dwarnings jobs: macos: diff --git a/src/lib.rs b/src/lib.rs index 476ea241a2..eb6d2f5f3e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,6 @@ #![crate_name = "nix"] #![cfg(unix)] #![allow(non_camel_case_types)] -#![cfg_attr(test, deny(warnings))] #![recursion_limit = "500"] #![deny(unused)] #![allow(unused_macros)]