Remove unnecessary lifetime annotations

This commit is contained in:
Richard Feldman 2020-03-21 20:56:29 -04:00
parent d0a1adfef9
commit d9fe38efce

View file

@ -134,7 +134,7 @@ pub fn basic_type_from_layout<'ctx>(
/// The order of these doesn't matter, since they should be initialized /// The order of these doesn't matter, since they should be initialized
/// to zero anyway for an empty collection; as such, we return a /// to zero anyway for an empty collection; as such, we return a
/// (usize, usize) struct layout no matter what. /// (usize, usize) struct layout no matter what.
pub fn empty_collection<'ctx>(ctx: &'ctx Context, ptr_bytes: u32) -> StructType<'ctx> { pub fn empty_collection(ctx: &Context, ptr_bytes: u32) -> StructType<'_> {
let usize_type = BasicTypeEnum::IntType(ptr_int(ctx, ptr_bytes)); let usize_type = BasicTypeEnum::IntType(ptr_int(ctx, ptr_bytes));
ctx.struct_type(&[usize_type, usize_type], false) ctx.struct_type(&[usize_type, usize_type], false)