about summary refs log tree commit diff
path: root/src/inline_asm.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-05 22:40:25 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2024-01-05 22:40:25 +0100
commit74987d04fc3f8b85be2cdbdddc3ea3e1e09a6ae1 (patch)
tree6c891a10c3deb00fbd5caf5319d94771ae44e1d8 /src/inline_asm.rs
parentb0250fca191a9520540a49d1166e32cfa13beb95 (diff)
downloadrust-74987d04fc3f8b85be2cdbdddc3ea3e1e09a6ae1.tar.gz
rust-74987d04fc3f8b85be2cdbdddc3ea3e1e09a6ae1.zip
fix a couple of clippy warnings
Diffstat (limited to 'src/inline_asm.rs')
-rw-r--r--src/inline_asm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inline_asm.rs b/src/inline_asm.rs
index 1d0d7ee75de..7793b1b7092 100644
--- a/src/inline_asm.rs
+++ b/src/inline_asm.rs
@@ -52,7 +52,7 @@ pub(crate) fn codegen_inline_asm_terminator<'tcx>(
     }
 
     let operands = operands
-        .into_iter()
+        .iter()
         .map(|operand| match *operand {
             InlineAsmOperand::In { reg, ref value } => CInlineAsmOperand::In {
                 reg,
@@ -763,7 +763,7 @@ fn call_inline_asm<'tcx>(
             },
         )
         .unwrap();
-    let inline_asm_func = fx.module.declare_func_in_func(inline_asm_func, &mut fx.bcx.func);
+    let inline_asm_func = fx.module.declare_func_in_func(inline_asm_func, fx.bcx.func);
     if fx.clif_comments.enabled() {
         fx.add_comment(inline_asm_func, asm_name);
     }