Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Feb 13, 2025
1 parent 968852f commit d952a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions wright/src/parser/literal/integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ impl IntegerLiteral {
/// Parse an integer literal from the given [Parser].
pub fn parse(parser: &mut Parser) -> Result<Self, ParserError> {
// Get the token containing the integer literal from the parser.
let int_lit_token = parser
.next_if_is(TokenTy::IntegerLiteral)
.ok_or_else(|| ParserErrorKind::ExpectedIntegerLiteral.at(parser.peek_fragment_or_rest_cloned()))?;
let int_lit_token = parser.next_if_is(TokenTy::IntegerLiteral).ok_or_else(|| {
ParserErrorKind::ExpectedIntegerLiteral.at(parser.peek_fragment_or_rest_cloned())
})?;

// Get the string to pass to num for the rest of parsing.
let mut parse_str: &str = int_lit_token.fragment.as_str();
Expand Down
2 changes: 1 addition & 1 deletion wright/src/parser/whitespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ pub fn require_whitespace(parser: &mut Parser) -> Result<(), ParserError> {
kind: ParserErrorKind::ExpectedWhitespace,
location: parser.peek_fragment_or_rest_cloned(),
help: None,
})
}),
}
}

0 comments on commit d952a24

Please sign in to comment.