Simplify the declaration a little

This commit is contained in:
Gwilym Inzani 2024-04-13 15:58:30 +01:00
parent 66e55890e2
commit 7f493e922e

View file

@ -61,13 +61,12 @@ fn load_from_object<'file>(
gimli::RunTimeEndian::Big gimli::RunTimeEndian::Big
}; };
fn load_section<'data: 'file, 'file, O, Endian>( fn load_section<'data, Endian>(
id: gimli::SectionId, id: gimli::SectionId,
file: &'file O, file: &impl object::Object<'data>,
endian: Endian, endian: Endian,
) -> Result<gimli::EndianRcSlice<Endian>, gimli::Error> ) -> Result<gimli::EndianRcSlice<Endian>, gimli::Error>
where where
O: object::Object<'data>,
Endian: gimli::Endianity, Endian: gimli::Endianity,
{ {
use object::ObjectSection; use object::ObjectSection;