diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-04-29 00:37:05 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-04-29 00:37:05 +0200 |
commit | 1c4c87128ab5306baed92e90ae9a49fc7f720bcd (patch) | |
tree | 507b02f2df2bf7fdf927a4b6b35ec7b827416ad8 /src | |
parent | c182df75df01d46b7f40de880942ab09c9421fd3 (diff) | |
download | elfload-1c4c87128ab5306baed92e90ae9a49fc7f720bcd.tar.gz elfload-1c4c87128ab5306baed92e90ae9a49fc7f720bcd.zip |
lint: replace explicit lifetime with elided on
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ pub struct Elf<'bytes, const N: usize> { } impl<const N: usize> Elf<'_, N> { - pub fn parse<'bytes>(b: &'bytes [u8]) -> Result<Elf<'bytes, N>> { + pub fn parse(b: &[u8]) -> Result<Elf<'_, N>> { let mut r = ElfReader::new(b); // |