Skip to content

Commit 5f26c94

Browse files
authored
chore: Remove deprecated usize::max_value (#82)
Signed-off-by: Xuanwo <[email protected]>
1 parent 8be87eb commit 5f26c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syntax/rule.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn rule_node(input: Input) -> IResult<Input, GreenElement, ()> {
1313
let mut parser = map(
1414
tuple((
1515
space0,
16-
take_while_m_n(5, usize::max_value(), |c| c == '-'),
16+
take_while_m_n(5, usize::MAX, |c| c == '-'),
1717
space0,
1818
eol_or_eof,
1919
blank_lines,

0 commit comments

Comments
 (0)