Skip to content

Commit

Permalink
spcasm: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinesfilmroellchen committed Oct 12, 2024
1 parent 78aaa3d commit 832352f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ impl Token {
}

/// Returns whether this token counts as a newline.
#[must_use]
pub fn is_newline(&self) -> bool {
matches!(self, Token::TestComment(..) | Token::Newline(_))
matches!(self, Self::TestComment(..) | Self::Newline(_))
}
}

Expand Down

0 comments on commit 832352f

Please sign in to comment.