From ac39dc290b7a2319a5bba61314bf1ee288e36057 Mon Sep 17 00:00:00 2001 From: Florian Hartwig Date: Sun, 6 Dec 2015 02:05:32 +0100 Subject: [PATCH] Remove obsolete workaround --- src/utils.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 3fcfa66259c..8be5a12ae07 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -256,7 +256,6 @@ pub fn get_parent_expr<'c>(cx: &'c LateContext, e: &Expr) -> Option<&'c Expr> { if let NodeExpr(parent) = node { Some(parent) } else { None } ) } -#[allow(needless_lifetimes)] // workaround for https://github.com/Manishearth/rust-clippy/issues/417 pub fn get_enclosing_block<'c>(cx: &'c LateContext, node: NodeId) -> Option<&'c Block> { let map = &cx.tcx.map; let enclosing_node = map.get_enclosing_scope(node)