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;