mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Simplify the declaration a little
This commit is contained in:
parent
66e55890e2
commit
7f493e922e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue