From 0046bb8ad8f22560390662247b56d53bc41d1ac6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 24 May 2023 22:03:57 +1000 Subject: [PATCH] Fix usage of cfg(rust_1_53) Our custom conditional configuration options enables for various versions of the compiler are not features. Fix the incorrect usage. --- bitcoin/src/blockdata/script/push_bytes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/script/push_bytes.rs b/bitcoin/src/blockdata/script/push_bytes.rs index 76fe46f1..99f5ccbf 100644 --- a/bitcoin/src/blockdata/script/push_bytes.rs +++ b/bitcoin/src/blockdata/script/push_bytes.rs @@ -14,7 +14,7 @@ use crate::prelude::*; /// break invariants. Therefore auditing this module should be sufficient. mod primitive { use core::convert::{TryFrom, TryInto}; - #[cfg(feature = "rust_v_1_53")] + #[cfg(rust_v_1_53)] use core::ops::Bound; use core::ops::{ Index, Range, RangeFrom, RangeFull, RangeInclusive, RangeTo, RangeToInclusive, @@ -105,7 +105,7 @@ mod primitive { RangeInclusive, RangeToInclusive ); - #[cfg(feature = "rust_v_1_53")] + #[cfg(rust_v_1_53)] delegate_index!((Bound, Bound)); impl Index for PushBytes {