FnKind::FkClosure -> FnKind::Closure

This commit is contained in:
Frank Denis 2015-09-01 14:28:23 +02:00
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
}