Commit d36f6b1c authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Remove extraneous slice reference



Clippy suggests that the reference is unnecessary when making a
comparison.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 599b2db1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1514,7 +1514,7 @@ fn verify_trailer(flash: &SimMultiFlash, slot: &SlotInfo,
                true
            } else if v == 3 {
                let expected = [erased_val; 16];
                if &copy[24..] != expected {
                if copy[24..] != expected {
                    warn!("\"magic\" mismatch at {:#x}", offset);
                    true
                } else {