Fix unused import without std
@@ -6,7 +6,7 @@ use crate::{
ParseResult::{self, *},
ResultExt, StreamError, Tracked,
},
- lib::{any::Any, fmt, marker::PhantomData, mem, str},
+ lib::{fmt, marker::PhantomData, mem, str},
parser::ParseMode,
stream::{input_at_eof, span::Span, ResetStream, Stream, StreamErrorFor, StreamOnce},
Parser,
@@ -15,6 +15,9 @@ use crate::{
#[cfg(feature = "alloc")]
use alloc::{boxed::Box, string::String, vec::Vec};
+#[cfg(feature = "alloc")]
+use crate::lib::any::Any;
+
#[derive(Copy, Clone)]
pub struct NotFollowedBy<P>(P);
impl<Input, O, P> Parser<Input> for NotFollowedBy<P>
