diff --git a/src/newtype_macros.rs b/src/newtype_macros.rs index cb33f1d5b5..4614f15023 100644 --- a/src/newtype_macros.rs +++ b/src/newtype_macros.rs @@ -86,7 +86,6 @@ macro_rules! newtype_traits (($newtype:ident, $len:expr) => ( /// by using `x[a..b] == y[a..b]`. This will open up for timing attacks /// when comparing for example authenticator tags. Because of this only /// use the comparison functions exposed by the sodiumoxide API. - #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")] impl ::std::ops::Index<::std::ops::Range> for $newtype { type Output = [u8]; fn index(&self, _index: ::std::ops::Range) -> &[u8] { @@ -99,7 +98,6 @@ macro_rules! newtype_traits (($newtype:ident, $len:expr) => ( /// by using `x[..b] == y[..b]`. This will open up for timing attacks /// when comparing for example authenticator tags. Because of this only /// use the comparison functions exposed by the sodiumoxide API. - #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")] impl ::std::ops::Index<::std::ops::RangeTo> for $newtype { type Output = [u8]; fn index(&self, _index: ::std::ops::RangeTo) -> &[u8] { @@ -112,7 +110,6 @@ macro_rules! newtype_traits (($newtype:ident, $len:expr) => ( /// by using `x[a..] == y[a..]`. This will open up for timing attacks /// when comparing for example authenticator tags. Because of this only /// use the comparison functions exposed by the sodiumoxide API. - #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")] impl ::std::ops::Index<::std::ops::RangeFrom> for $newtype { type Output = [u8]; fn index(&self, _index: ::std::ops::RangeFrom) -> &[u8] { @@ -125,7 +122,6 @@ macro_rules! newtype_traits (($newtype:ident, $len:expr) => ( /// by using `x[] == y[]`. This will open up for timing attacks /// when comparing for example authenticator tags. Because of this only /// use the comparison functions exposed by the sodiumoxide API. - #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")] impl ::std::ops::Index<::std::ops::RangeFull> for $newtype { type Output = [u8]; fn index(&self, _index: ::std::ops::RangeFull) -> &[u8] {