Skip to content

Commit c5b6fda

Browse files
committed
Allow needless_lifetime to pass dogfood.sh
1 parent 5ca7ebb commit c5b6fda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ pub fn get_parent_expr<'c>(cx: &'c LateContext, e: &Expr) -> Option<&'c Expr> {
255255
if let NodeExpr(parent) = node { Some(parent) } else { None } )
256256
}
257257

258+
#[allow(needless_lifetimes)] // workaround for https://github.com/Manishearth/rust-clippy/issues/417
258259
pub fn get_enclosing_block<'c>(cx: &'c LateContext, node: NodeId) -> Option<&'c Block> {
259260
let map = &cx.tcx.map;
260261
let enclosing_node = map.get_enclosing_scope(node)

0 commit comments

Comments
 (0)