remove superfluous warning and clippy allows (#194)

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2025-02-05 12:44:29 +01:00
committed by GitHub
parent 35419e8202
commit 157647d5c1
9 changed files with 7 additions and 22 deletions
-1
View File
@@ -42,7 +42,6 @@ impl Lexer {
}
/// Advances the lexer, returning the next lexeme.
#[allow(clippy::should_implement_trait)]
pub fn next(&mut self) -> Result<Token, Error> {
if let Some(peeked) = self.peeked.take() {
return Ok(peeked);