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.
This commit is contained in:
Tobin C. Harding 2023-05-24 22:03:57 +10:00
parent c3450f3913
commit 0046bb8ad8
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -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<usize>,
RangeToInclusive<usize>
);
#[cfg(feature = "rust_v_1_53")]
#[cfg(rust_v_1_53)]
delegate_index!((Bound<usize>, Bound<usize>));
impl Index<usize> for PushBytes {