File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ impl Config {
28
28
pub fn reversed ( & self ) -> Config {
29
29
// Reverse DFAs require that captures are disabled. In practice, there
30
30
// is no current use case for a reverse NFA with capture groups.
31
- let thompson = self . thompson . clone ( ) . reverse ( true ) . captures ( false ) ;
31
+ let thompson = self
32
+ . thompson
33
+ . clone ( )
34
+ . reverse ( true )
35
+ . which_captures ( thompson:: WhichCaptures :: None ) ;
32
36
Config { thompson }
33
37
}
34
38
@@ -67,7 +71,10 @@ impl Configurable for Config {
67
71
self . thompson = self . thompson . clone ( ) . shrink ( true ) ;
68
72
}
69
73
Arg :: Long ( "no-captures" ) => {
70
- self . thompson = self . thompson . clone ( ) . captures ( false ) ;
74
+ self . thompson = self
75
+ . thompson
76
+ . clone ( )
77
+ . which_captures ( thompson:: WhichCaptures :: None ) ;
71
78
}
72
79
Arg :: Long ( "line-terminator" ) => {
73
80
let byte: flags:: OneByte =
You can’t perform that action at this time.
0 commit comments