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 @@ -130,7 +130,7 @@ impl<'a, 'v> visit::Visitor<'v> for FmtVisitor<'a> {
130
130
131
131
let indent = self . block_indent ;
132
132
match fk {
133
- visit:: FkItemFn ( ident,
133
+ visit:: FnKind :: ItemFn ( ident,
134
134
ref generics,
135
135
ref unsafety,
136
136
ref constness,
@@ -148,7 +148,7 @@ impl<'a, 'v> visit::Visitor<'v> for FmtVisitor<'a> {
148
148
codemap:: mk_sp ( s. lo , b. span . lo ) ) ;
149
149
self . buffer . push_str ( & new_fn) ;
150
150
}
151
- visit:: FkMethod ( ident, ref sig, vis) => {
151
+ visit:: FnKind :: Method ( ident, ref sig, vis) => {
152
152
let new_fn = self . rewrite_fn ( indent,
153
153
ident,
154
154
fd,
@@ -161,7 +161,7 @@ impl<'a, 'v> visit::Visitor<'v> for FmtVisitor<'a> {
161
161
codemap:: mk_sp ( s. lo , b. span . lo ) ) ;
162
162
self . buffer . push_str ( & new_fn) ;
163
163
}
164
- visit:: FkClosure ( .. ) => { }
164
+ visit:: FnKind :: Closure => { }
165
165
}
166
166
167
167
self . last_pos = b. span . lo ;
You can’t perform that action at this time.
0 commit comments