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
};
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::EndianRcSlice<Endian>, gimli::Error>
where
O: object::Object<'data>,
Endian: gimli::Endianity,
{
use object::ObjectSection;