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:
parent
c3450f3913
commit
0046bb8ad8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue