Skip to content

Commit 919027b

Browse files
lqdcompiler-errors
authored andcommitted
remove unused lifetimes
1 parent fe11717 commit 919027b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/formality-core/src/parse/parser/left_recursion.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ impl StackEntry {
129129
///
130130
/// This variant will recurse *again*. But this time the current text is `"2 + 3)"`.
131131
/// This is not considered a recursive match.
132-
pub fn matches_current_state<'t, L, T>(
132+
pub fn matches_current_state<L, T>(
133133
&self,
134134
scope: &Scope<L>,
135-
start_text: &'t str,
135+
start_text: &str,
136136
) -> Option<CurrentState>
137137
where
138138
L: Language,
@@ -439,7 +439,7 @@ where
439439
}
440440
}
441441

442-
pub(super) fn recurse<'s, 't, R>(current_state: CurrentState, op: impl FnOnce() -> R) -> R {
442+
pub(super) fn recurse<R>(current_state: CurrentState, op: impl FnOnce() -> R) -> R {
443443
STACK.with_borrow_mut(|stack| {
444444
let top = stack.last_mut().unwrap();
445445
assert!(

0 commit comments

Comments
 (0)