diff --git a/src/allocator.rs b/src/allocator.rs index 6ca76009..fbc320eb 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -1370,8 +1370,6 @@ fn test_g2_roundtrip(#[case] atom: &str) { ); } -#[cfg(test)] -use core::convert::TryFrom; use std::borrow::Borrow; #[cfg(test)] diff --git a/src/number.rs b/src/number.rs index c22079b2..ff7ebc33 100644 --- a/src/number.rs +++ b/src/number.rs @@ -96,9 +96,6 @@ fn test_node_from_number() { #[cfg(test)] use num_bigint::{BigUint, Sign}; -#[cfg(test)] -use std::convert::TryFrom; - #[cfg(test)] fn roundtrip_bytes(b: &[u8]) { let negative = !b.is_empty() && (b[0] & 0x80) != 0; diff --git a/src/serde/parse_atom.rs b/src/serde/parse_atom.rs index 365b74a4..5bdd866a 100644 --- a/src/serde/parse_atom.rs +++ b/src/serde/parse_atom.rs @@ -100,9 +100,6 @@ pub fn parse_path<'a>(f: &'a mut Cursor<&[u8]>) -> Result<&'a [u8]> { #[cfg(test)] use std::io::ErrorKind; -#[cfg(test)] -use hex; - #[cfg(test)] use super::write_atom::write_atom;