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
|
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;
|
||||||
|
|
Loading…
Reference in a new issue