From 1c4c87128ab5306baed92e90ae9a49fc7f720bcd Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 29 Apr 2022 00:37:05 +0200 Subject: lint: replace explicit lifetime with elided on --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Elf<'_, N> { - pub fn parse<'bytes>(b: &'bytes [u8]) -> Result> { + pub fn parse(b: &[u8]) -> Result> { let mut r = ElfReader::new(b); // -- cgit v1.2.3