FnKind::FkClosure -> FnKind::Closure
This commit is contained in:
parent
d3da9f6c81
commit
833493cf07
@ -22,7 +22,7 @@ impl LintPass for TopLevelRefPass {
|
||||
}
|
||||
|
||||
fn check_fn(&mut self, cx: &Context, k: FnKind, decl: &FnDecl, _: &Block, _: Span, _: NodeId) {
|
||||
if let FnKind::FkClosure = k {
|
||||
if let FnKind::Closure = k {
|
||||
// Does not apply to closures
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user