Skip to content

Commit 92efe4a

Browse files
committed
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.
1 parent ab88aa5 commit 92efe4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex-automata/src/dfa/onepass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ struct InternalBuilder<'a> {
521521

522522
impl<'a> InternalBuilder<'a> {
523523
/// Create a new builder with an initial empty DFA.
524-
fn new(config: Config, nfa: &'a NFA) -> InternalBuilder {
524+
fn new(config: Config, nfa: &'a NFA) -> InternalBuilder<'a> {
525525
let classes = if !config.get_byte_classes() {
526526
// A one-pass DFA will always use the equivalence class map, but
527527
// enabling this option is useful for debugging. Namely, this will

0 commit comments

Comments
 (0)