From aa240baadf99d3fea0477a9b3966789b0f4ffe57 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Fri, 4 Oct 2024 05:44:10 -0400 Subject: [PATCH] Appease clippy ``` error: the following explicit lifetimes could be elided: 'data, 'file --> aya-obj/src/obj.rs:1083:6 | 1083 | impl<'data, 'file, 'a> TryFrom<&'a ObjSection<'data, 'file>> for Section<'a> { | ^^^^^ ^^^^^ ^^^^^ ^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes ``` --- aya-obj/src/obj.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya-obj/src/obj.rs b/aya-obj/src/obj.rs index e4be87da..f0168950 100644 --- a/aya-obj/src/obj.rs +++ b/aya-obj/src/obj.rs @@ -1080,7 +1080,7 @@ struct Section<'a> { relocations: Vec, } -impl<'data, 'file, 'a> TryFrom<&'a ObjSection<'data, 'file>> for Section<'a> { +impl<'a> TryFrom<&'a ObjSection<'_, '_>> for Section<'a> { type Error = ParseError; fn try_from(section: &'a ObjSection) -> Result, ParseError> {