From 833493cf0711f7ca9ac778c4ea8d1410777be85d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 1 Sep 2015 14:28:23 +0200 Subject: [PATCH] FnKind::FkClosure -> FnKind::Closure --- src/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.rs b/src/misc.rs index 26493080d87..b9d74c645b7 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -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 }