aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-04-29 00:37:05 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-04-29 00:37:05 +0200
commit1c4c87128ab5306baed92e90ae9a49fc7f720bcd (patch)
tree507b02f2df2bf7fdf927a4b6b35ec7b827416ad8 /src
parentc182df75df01d46b7f40de880942ab09c9421fd3 (diff)
downloadelfload-1c4c87128ab5306baed92e90ae9a49fc7f720bcd.tar.gz
elfload-1c4c87128ab5306baed92e90ae9a49fc7f720bcd.zip
lint: replace explicit lifetime with elided on
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9bec615..5f51ba0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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);
//