about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-03-28 00:55:45 +0100
committerAntoni Boucher <bouanto@zoho.com>2024-07-02 12:21:25 -0400
commit621e948721abb85f9b075027180e3f15416efcfc (patch)
treed295cf712a43ba94514692a389941528e868e8ab
parentfd7979d46d3b19360e48fb54118761ecaed37c20 (diff)
downloadrust-621e948721abb85f9b075027180e3f15416efcfc.tar.gz
rust-621e948721abb85f9b075027180e3f15416efcfc.zip
Fix clippy lint
-rw-r--r--src/builder.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/builder.rs b/src/builder.rs
index b4a01d3c065..f85971d1657 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -190,8 +190,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
         let casted_args: Vec<_> = param_types
             .into_iter()
             .zip(args.iter())
-            .enumerate()
-            .map(|(_i, (expected_ty, &actual_val))| {
+            .map(|(expected_ty, &actual_val)| {
                 let actual_ty = actual_val.get_type();
                 if expected_ty != actual_ty {
                     self.bitcast(actual_val, expected_ty)