From 99ca3f545f9db01ea10df2b0288a5b2a42bd003a Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:02:08 +0200 Subject: [PATCH] clippy --- crates/compiler/can/src/suffixed.rs | 2 +- crates/compiler/test_gen/src/helpers/llvm.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/compiler/can/src/suffixed.rs b/crates/compiler/can/src/suffixed.rs index 3de1564b66..50b2d5325b 100644 --- a/crates/compiler/can/src/suffixed.rs +++ b/crates/compiler/can/src/suffixed.rs @@ -290,7 +290,7 @@ pub fn unwrap_suffixed_expression_apply_help<'a>( // Any suffixed arguments will be innermost, therefore we unwrap those first let local_args = arena.alloc_slice_copy(apply_args); - for (_, arg) in local_args.iter_mut().enumerate() { + for arg in local_args.iter_mut() { match unwrap_suffixed_expression(arena, arg, maybe_def_pat) { Ok(new_arg) => { *arg = new_arg; diff --git a/crates/compiler/test_gen/src/helpers/llvm.rs b/crates/compiler/test_gen/src/helpers/llvm.rs index feb543f6ec..6a71968fe7 100644 --- a/crates/compiler/test_gen/src/helpers/llvm.rs +++ b/crates/compiler/test_gen/src/helpers/llvm.rs @@ -335,6 +335,8 @@ pub fn helper<'a>( let (main_fn_name, delayed_errors, module) = create_llvm_module(arena, src, config, context, target, function_kind); + //module.print_to_file(std::path::Path::new("/home/username/gitrepos/roc4/roc/str_to_u128.ll")).unwrap(); + if !config.emit_debug_info { module.strip_debug_info(); }