From 7f493e922e70b4d3bbb3cb36fe6196a4e711c8ab Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sat, 13 Apr 2024 15:58:30 +0100 Subject: [PATCH] Simplify the declaration a little --- agb-debug/src/load_dwarf.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agb-debug/src/load_dwarf.rs b/agb-debug/src/load_dwarf.rs index 12d3500a..394e5e57 100644 --- a/agb-debug/src/load_dwarf.rs +++ b/agb-debug/src/load_dwarf.rs @@ -61,13 +61,12 @@ fn load_from_object<'file>( gimli::RunTimeEndian::Big }; - fn load_section<'data: 'file, 'file, O, Endian>( + fn load_section<'data, Endian>( id: gimli::SectionId, - file: &'file O, + file: &impl object::Object<'data>, endian: Endian, ) -> Result, gimli::Error> where - O: object::Object<'data>, Endian: gimli::Endianity, { use object::ObjectSection;