Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit fcf1f94

Browse files
committed
Adapt to the rust-lang/rust changes
1 parent ac4648b commit fcf1f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

racer/src/racer/ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl<'ast> visit::Visitor<'ast> for FnArgVisitor {
230230
fn visit_fn(&mut self, fk: visit::FnKind<'_>, _: source_map::Span, _: ast::NodeId) {
231231
let fd = match fk {
232232
visit::FnKind::Fn(_, _, ref fn_sig, _, _, _) => &*fn_sig.decl,
233-
visit::FnKind::Closure(ref fn_decl, _) => fn_decl,
233+
visit::FnKind::Closure(_, ref fn_decl, _) => fn_decl,
234234
};
235235
debug!("[FnArgVisitor::visit_fn] inputs: {:?}", fd.inputs);
236236
self.idents = fd
@@ -1259,7 +1259,7 @@ impl<'ast> visit::Visitor<'ast> for FnOutputVisitor {
12591259
fn visit_fn(&mut self, kind: visit::FnKind<'_>, _: source_map::Span, _: ast::NodeId) {
12601260
let fd = match kind {
12611261
visit::FnKind::Fn(_, _, ref fn_sig, _, _, _) => &*fn_sig.decl,
1262-
visit::FnKind::Closure(ref fn_decl, _) => fn_decl,
1262+
visit::FnKind::Closure(_, ref fn_decl, _) => fn_decl,
12631263
};
12641264
self.is_async = kind
12651265
.header()

0 commit comments

Comments
 (0)