summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJere Käpyaho <2261936+jerekapyaho@users.noreply.github.com>2022-03-08 13:26:47 +0200
committerJere Käpyaho <2261936+jerekapyaho@users.noreply.github.com>2022-03-08 13:26:47 +0200
commit8b1444fabc77517672d1ec8bcfab9405bc3ee020 (patch)
tree85a4ef78e7e0b7b77e659ccac1343aed76b25122
parentd431934b9cfd93f91fdc89a4e13a7a6c997dffd7 (diff)
Updated per Clippy suggestion
-rw-r--r--src/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b39f8b6..e51b120 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -433,12 +433,10 @@ pub fn output_array(
} else {
write!(locked, "{}uy", hex_lower_hex(*hex))?;
}
+ } else if array_format != "f" {
+ write!(locked, "{}, ", hex_lower_hex(*hex))?;
} else {
- if array_format != "f" {
- write!(locked, "{}, ", hex_lower_hex(*hex))?;
- } else {
- write!(locked, "{}uy; ", hex_lower_hex(*hex))?;
- }
+ write!(locked, "{}uy; ", hex_lower_hex(*hex))?;
}
}
writeln!(locked)?;