Commit 173e6caa authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Remove elided lifetime



This lifetime can be inferred by the compiler, so remove the explicit
one.  This makes the code a little easier to read.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 80f836d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1704,7 +1704,7 @@ fn splat(data: &mut [u8], seed: usize) {

/// Return a read-only view into the raw bytes of this object
trait AsRaw : Sized {
    fn as_raw<'a>(&'a self) -> &'a [u8] {
    fn as_raw(&self) -> &[u8] {
        unsafe { slice::from_raw_parts(self as *const _ as *const u8,
                                       mem::size_of::<Self>()) }
    }