Skip to content

Commit

Permalink
automata: add explicit lifetime annotation
Browse files Browse the repository at this point in the history
rustc seems to warn about this. And I would prefer writing the lifetime
here anyway. That it wasn't was probably an oversight.
  • Loading branch information
BurntSushi committed Sep 29, 2024
1 parent ab88aa5 commit 92efe4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex-automata/src/dfa/onepass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92efe4a

Please sign in to comment.