From 92efe4ad898e8454cdb7bf21fcf4bf61c498fef2 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 29 Sep 2024 08:21:24 -0400 Subject: [PATCH] automata: add explicit lifetime annotation rustc seems to warn about this. And I would prefer writing the lifetime here anyway. That it wasn't was probably an oversight. --- regex-automata/src/dfa/onepass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex-automata/src/dfa/onepass.rs b/regex-automata/src/dfa/onepass.rs index e62bbd383..01e45309c 100644 --- a/regex-automata/src/dfa/onepass.rs +++ b/regex-automata/src/dfa/onepass.rs @@ -521,7 +521,7 @@ struct InternalBuilder<'a> { impl<'a> InternalBuilder<'a> { /// Create a new builder with an initial empty DFA. - fn new(config: Config, nfa: &'a NFA) -> InternalBuilder { + fn new(config: Config, nfa: &'a NFA) -> InternalBuilder<'a> { let classes = if !config.get_byte_classes() { // A one-pass DFA will always use the equivalence class map, but // enabling this option is useful for debugging. Namely, this will