From 8b1444fabc77517672d1ec8bcfab9405bc3ee020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jere=20K=C3=A4pyaho?= <2261936+jerekapyaho@users.noreply.github.com> Date: Tue, 8 Mar 2022 13:26:47 +0200 Subject: Updated per Clippy suggestion --- src/lib.rs | 8 +++----- 1 file 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)?; -- cgit v1.2.3