diff --git a/Cargo.toml b/Cargo.toml index 4bffbcd..5b4bcd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,6 @@ alloc = [] [dependencies] arrayvec = { version = "0.7.2", default-features = false } -core2 = { version = "0.3.2", default-features = false, optional = true } serde = { version = "1.0", default-features = false, optional = true } diff --git a/contrib/test.sh b/contrib/test.sh index 8d9b292..305efb1 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -2,7 +2,7 @@ set -ex -FEATURES="std alloc core2 serde" +FEATURES="std alloc serde" MSRV="1\.48\.0" cargo --version diff --git a/src/iter.rs b/src/iter.rs index d1798b0..274c035 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -8,9 +8,6 @@ use core::str; #[cfg(feature = "std")] use std::io; -#[cfg(all(feature = "core2", not(feature = "std")))] -use core2::io; - use crate::error::{InvalidCharError, OddLengthStringError}; /// Convenience alias for `HexToBytesIter>`. @@ -87,7 +84,7 @@ impl + ExactSizeIterator> ExactSizeIterator for HexT impl + FusedIterator> FusedIterator for HexToBytesIter {} -#[cfg(any(feature = "std", feature = "core2"))] +#[cfg(feature = "std")] impl + FusedIterator> io::Read for HexToBytesIter { #[inline] fn read(&mut self, buf: &mut [u8]) -> io::Result {