We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fdad8 commit 902a2fcCopy full SHA for 902a2fc
crates/utils/src/parser/number.rs
@@ -113,6 +113,7 @@ impl<'i, I: Integer + Parseable> Parser<'i> for NumberRange<I> {
113
type Output = I;
114
type Then<T: Parser<'i>> = Then2<Self, T>;
115
116
+ #[inline]
117
fn parse(&self, input: &'i [u8]) -> ParseResult<'i, Self::Output> {
118
let (v, remaining) = I::PARSER.parse(input)?;
119
if v < self.min {
@@ -155,6 +156,7 @@ impl<'i> Parser<'i> for Digit {
155
156
type Output = u8;
157
158
159
160
161
if let Some(d @ b'0'..=b'9') = input.first() {
162
Ok((d - b'0', &input[1..]))
0 commit comments