diff options
author | Jere Käpyaho <2261936+jerekapyaho@users.noreply.github.com> | 2022-03-08 13:26:47 +0200 |
---|---|---|
committer | Jere Käpyaho <2261936+jerekapyaho@users.noreply.github.com> | 2022-03-08 13:26:47 +0200 |
commit | 8b1444fabc77517672d1ec8bcfab9405bc3ee020 (patch) | |
tree | 85a4ef78e7e0b7b77e659ccac1343aed76b25122 | |
parent | d431934b9cfd93f91fdc89a4e13a7a6c997dffd7 (diff) |
Updated per Clippy suggestion
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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)?; |