Greatly simplify lifetime captures in edition 2024
This commit is contained in:
parent
46420c9607
commit
12e3911d81
84 changed files with 223 additions and 294 deletions
|
@ -1657,7 +1657,7 @@ impl<'a> Parser<'a> {
|
|||
// Debug view of the parser's token stream, up to `{lookahead}` tokens.
|
||||
// Only used when debugging.
|
||||
#[allow(unused)]
|
||||
pub(crate) fn debug_lookahead(&self, lookahead: usize) -> impl fmt::Debug + '_ {
|
||||
pub(crate) fn debug_lookahead(&self, lookahead: usize) -> impl fmt::Debug {
|
||||
fmt::from_fn(move |f| {
|
||||
let mut dbg_fmt = f.debug_struct("Parser"); // or at least, one view of
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue