Fix lifetimes in StringReader.

Two different lifetimes are conflated. This doesn't matter right now,
but needs to be fixed for the next commit to work. And the more
descriptive lifetime names make the code easier to read.
This commit is contained in:
Nicholas Nethercote
2024-01-11 14:21:07 +11:00
parent fbe68bc40c
commit d02150fd45
3 changed files with 27 additions and 23 deletions

View File

@@ -337,7 +337,7 @@ const ASCII_ARRAY: &[(&str, &str, Option<token::TokenKind>)] = &[
];
pub(super) fn check_for_substitution(
reader: &StringReader<'_>,
reader: &StringReader<'_, '_>,
pos: BytePos,
ch: char,
count: usize,