Omit Span::lo/hi when not using procmacro2_unstable
Token![...] being 24 bytes is a large number.
diff --git a/src/strnom.rs b/src/strnom.rs
index 558be8e..5f23803 100644
--- a/src/strnom.rs
+++ b/src/strnom.rs
@@ -9,6 +9,7 @@
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cursor<'a> {
pub rest: &'a str,
+ #[cfg(procmacro2_unstable)]
pub off: u32,
}
@@ -16,6 +17,7 @@
pub fn advance(&self, amt: usize) -> Cursor<'a> {
Cursor {
rest: &self.rest[amt..],
+ #[cfg(procmacro2_unstable)]
off: self.off + (amt as u32),
}
}