From 058d9f0e86d47631263d9d221a0706bdb3f94f82 Mon Sep 17 00:00:00 2001 From: Jan Oravec Date: Thu, 24 Oct 2024 10:25:11 -0700 Subject: [PATCH] Fix unused enumerate index lint in ir_to_bc/emitter.rs Reviewed By: paulbiss Differential Revision: D64899501 fbshipit-source-id: 745629fcf4e943a28d2c0411d1cde6a24e4770f6 --- hphp/hack/src/hackc/ir/conversions/ir_to_bc/emitter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hphp/hack/src/hackc/ir/conversions/ir_to_bc/emitter.rs b/hphp/hack/src/hackc/ir/conversions/ir_to_bc/emitter.rs index 19c6f8cf3df6c..94e685b52cbd2 100644 --- a/hphp/hack/src/hackc/ir/conversions/ir_to_bc/emitter.rs +++ b/hphp/hack/src/hackc/ir/conversions/ir_to_bc/emitter.rs @@ -222,8 +222,7 @@ impl<'b> InstrEmitter<'b> { .repr .params .iter() - .enumerate() - .map(|(_, (param, _))| { + .map(|(param, _)| { let name = LocalId::Named(param.name); let local = hhbc::Local::new(next_local_idx); next_local_idx += 1;