Skip to content

Commit 4a6914b

Browse files
committed
Remove a hir_to_node_id
1 parent d744dcd commit 4a6914b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'a, 'tcx> Delegate<'tcx> for EscapeDelegate<'a, 'tcx> {
113113
fn matched_pat(&mut self, _: &Pat, _: &cmt_<'tcx>, _: MatchMode) {}
114114
fn consume_pat(&mut self, consume_pat: &Pat, cmt: &cmt_<'tcx>, _: ConsumeMode) {
115115
let map = &self.cx.tcx.hir();
116-
if map.is_argument(map.hir_to_node_id(consume_pat.hir_id)) {
116+
if map.is_argument(consume_pat.hir_id) {
117117
// Skip closure arguments
118118
if let Some(Node::Expr(..)) = map.find(map.get_parent_node(consume_pat.hir_id)) {
119119
return;

0 commit comments

Comments
 (0)