From 95435e8ea64b7cd5a28cc6d4f205e3bc3aed8587 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Sat, 21 Oct 2023 14:29:37 +0200 Subject: [PATCH] fix nostd imports --- src/multi/tests.rs | 2 +- src/number/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multi/tests.rs b/src/multi/tests.rs index d6b90e8d7..9f15ef4c9 100644 --- a/src/multi/tests.rs +++ b/src/multi/tests.rs @@ -1,10 +1,10 @@ -use std::ops::Range; use super::{length_data, length_value, many0_count, many1_count}; use crate::{ bytes::streaming::tag, character::streaming::digit1 as digit, error::{ErrorKind, ParseError}, internal::{Err, IResult, Needed}, + lib::std::ops::Range, lib::std::str::{self, FromStr}, number::streaming::{be_u16, be_u8}, sequence::pair, diff --git a/src/number/mod.rs b/src/number/mod.rs index b4c5b9501..217aa75d9 100644 --- a/src/number/mod.rs +++ b/src/number/mod.rs @@ -1388,6 +1388,7 @@ mod tests { use crate::error::ErrorKind; use crate::internal::Err; + #[cfg(feature = "std")] macro_rules! assert_parse( ($left: expr, $right: expr) => { let res: $crate::IResult<_, _, (_, ErrorKind)> = $left;