chore: Remove deprecated usize::max_value (#82)

Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo 2024-07-22 14:15:12 +08:00 committed by GitHub
parent 8be87eb774
commit 5f26c94dce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,