Commit 59ae5225 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Remove extraneous `mut`

This value does not need to be mutable as it is just given to another
function immediately.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 3df2a0ea
Loading
Loading
Loading
Loading
+1 −1
Changes for sim/simflash/src/lib.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ impl Flash for SimFlash {
            *x = false;
        }

        let mut sub = &mut self.data[offset .. offset + payload.len()];
        let sub = &mut self.data[offset .. offset + payload.len()];
        sub.copy_from_slice(payload);
        Ok(())
    }