about summary refs log tree commit diff
path: root/compiler/rustc_target/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:51:34 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:51:34 +0200
commit7c2d57e0fa1615d993a4b4166163fb0b3ec7d395 (patch)
tree61a9e097c0b58ae572ad2dbed78e73c5b67d8b91 /compiler/rustc_target/src
parent0d13f6afeba4935499abe0c9a07426c94492c94e (diff)
downloadrust-7c2d57e0fa1615d993a4b4166163fb0b3ec7d395.tar.gz
rust-7c2d57e0fa1615d993a4b4166163fb0b3ec7d395.zip
couple of clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_target/src')
-rw-r--r--compiler/rustc_target/src/abi/call/sparc64.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/abi/call/sparc64.rs b/compiler/rustc_target/src/abi/call/sparc64.rs
index 5a92ebdd9e8..cc3a0a69999 100644
--- a/compiler/rustc_target/src/abi/call/sparc64.rs
+++ b/compiler/rustc_target/src/abi/call/sparc64.rs
@@ -113,11 +113,11 @@ where
             data = arg_scalar(cx, &scalar, offset, data);
         }
         abi::Abi::Aggregate { .. } => {
-            for i in 0..layout.fields.count().clone() {
+            for i in 0..layout.fields.count() {
                 if offset < layout.fields.offset(i) {
                     offset = layout.fields.offset(i);
                 }
-                data = parse_structure(cx, layout.field(cx, i).clone(), data.clone(), offset);
+                data = parse_structure(cx, layout.field(cx, i), data.clone(), offset);
             }
         }
         _ => {
@@ -161,7 +161,7 @@ where
 
             let mut data = parse_structure(
                 cx,
-                arg.layout.clone(),
+                arg.layout,
                 Sdata {
                     prefix: [None; 8],
                     prefix_index: 0,