From 37cbeae409fd9cc4a442ed5786b45ba98e64137d Mon Sep 17 00:00:00 2001 From: Lachlan Deakin Date: Sun, 5 May 2024 19:28:10 +1000 Subject: [PATCH] Fix clippy `unexpected_cfgs` warning with recent nightly --- CHANGELOG.md | 1 + build.rs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 093aebe..06d4a76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix `compute_encoded_size()` for `BitroundCodec` incorrectly indicating various data types were unsupported - Fix a link in chunk grid docs - Fix incorrect minimum dependency versions and add CI check + - Fix clippy `unexpected_cfgs` warning with recent nightly ## [0.13.0] - 2024-04-20 diff --git a/build.rs b/build.rs index a297e9d..b55fdaf 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,10 @@ #[rustversion::nightly] fn main() { + println!("cargo:rustc-check-cfg=cfg(nightly)"); println!("cargo:rustc-cfg=nightly"); } #[rustversion::not(nightly)] -fn main() {} +fn main() { + println!("cargo:rustc-check-cfg=cfg(nightly)"); +}