File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fn remove_all_parens(pat: &mut P<Pat>) {
128
128
}
129
129
130
130
impl MutVisitor for Visitor {
131
- fn visit_pat ( & mut self , pat : & mut P < Pat > ) {
131
+ fn visit_pat ( & mut self , pat : & mut Pat ) {
132
132
let is_inner = mem:: replace ( & mut self . is_inner , true ) ;
133
133
walk_pat ( self , pat) ;
134
134
let inner = match & mut pat. kind {
@@ -145,7 +145,7 @@ fn remove_all_parens(pat: &mut P<Pat>) {
145
145
fn insert_necessary_parens ( pat : & mut P < Pat > ) {
146
146
struct Visitor ;
147
147
impl MutVisitor for Visitor {
148
- fn visit_pat ( & mut self , pat : & mut P < Pat > ) {
148
+ fn visit_pat ( & mut self , pat : & mut Pat ) {
149
149
use ast:: BindingMode ;
150
150
walk_pat ( self , pat) ;
151
151
let target = match & mut pat. kind {
@@ -167,7 +167,7 @@ fn unnest_or_patterns(pat: &mut P<Pat>) -> bool {
167
167
changed : bool ,
168
168
}
169
169
impl MutVisitor for Visitor {
170
- fn visit_pat ( & mut self , p : & mut P < Pat > ) {
170
+ fn visit_pat ( & mut self , p : & mut Pat ) {
171
171
// This is a bottom up transformation, so recurse first.
172
172
walk_pat ( self , p) ;
173
173
You can’t perform that action at this time.
0 commit comments