diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-13 22:51:34 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-13 22:51:34 +0200 |
| commit | 7c2d57e0fa1615d993a4b4166163fb0b3ec7d395 (patch) | |
| tree | 61a9e097c0b58ae572ad2dbed78e73c5b67d8b91 /compiler/rustc_target/src | |
| parent | 0d13f6afeba4935499abe0c9a07426c94492c94e (diff) | |
| download | rust-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.rs | 6 |
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, |
