chore: Remove deprecated usize::max_value

Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo 2024-07-22 00:37:41 +08:00
parent 8be87eb774
commit 48fd62d36c
No known key found for this signature in database
GPG key ID: E95B7C7CB352F6C1

View file

@ -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,