Replace deprecated std package's constants on floats and integers (#1420)

This commit is contained in:
Kanji Yomoda
2022-07-22 08:05:08 +09:00
committed by GitHub
parent d24f31f965
commit af84e74284
19 changed files with 31 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ impl Default for Token {
Token {
offset_from: 0,
offset_to: 0,
position: usize::max_value(),
position: usize::MAX,
text: String::with_capacity(200),
position_length: 1,
}