Skip to content

Commit 9f35e11

Browse files
committed
Remove unused return value of punct parser
1 parent b3caa25 commit 9f35e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/strnom.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,10 @@ macro_rules! punct {
312312
}
313313

314314
/// Do not use directly. Use `punct!`.
315-
pub(crate) fn punct<'a>(input: Cursor<'a>, token: &'static str) -> PResult<'a, &'a str> {
315+
pub(crate) fn punct<'a>(input: Cursor<'a>, token: &'static str) -> PResult<'a, ()> {
316316
let input = skip_whitespace(input);
317317
if input.starts_with(token) {
318-
Ok((input.advance(token.len()), token))
318+
Ok((input.advance(token.len()), ()))
319319
} else {
320320
Err(LexError)
321321
}

0 commit comments

Comments
 (0)