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: David Brown <david.brown@linaro.org>
This commit is contained in:
David Brown 2021-03-10 05:25:36 -07:00 committed by David Brown
parent 80f836d19d
commit 173e6caaea
1 changed files with 1 additions and 1 deletions

View File

@ -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>()) }
}