Skip to content

Commit

Permalink
chore: Remove deprecated usize::max_value (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Jul 22, 2024
1 parent 8be87eb commit 5f26c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syntax/rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn rule_node(input: Input) -> IResult<Input, GreenElement, ()> {
let mut parser = map(
tuple((
space0,
take_while_m_n(5, usize::max_value(), |c| c == '-'),
take_while_m_n(5, usize::MAX, |c| c == '-'),
space0,
eol_or_eof,
blank_lines,
Expand Down

0 comments on commit 5f26c94

Please sign in to comment.