the clippiest of clips

This commit is contained in:
Richard Feldman 2020-03-18 20:00:38 -04:00
parent 8f51b2d429
commit 04f8b93a9b
2 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ pub fn build_expr<'a, 'ctx, 'env>(
let mut arg_tuples: Vec<(BasicValueEnum, &'a Layout<'a>)> =
Vec::with_capacity_in(args.len(), env.arena);
for (arg, layout) in args.into_iter() {
for (arg, layout) in args.iter() {
arg_tuples.push((build_expr(env, scope, parent, arg, procs), layout));
}
@ -1067,7 +1067,7 @@ fn call_with_args<'a, 'ctx, 'env>(
let mut arg_vals: Vec<BasicValueEnum> = Vec::with_capacity_in(args.len(), env.arena);
for (arg, _layout) in args.into_iter() {
for (arg, _layout) in args.iter() {
arg_vals.push(*arg);
}

View file

@ -143,7 +143,7 @@ pub fn collection_wrapper<'ctx>(
ctx.struct_type(&[ptr_type_enum, len_type], false)
}
pub fn ptr_int<'ctx>(ctx: &'ctx Context, ptr_bytes: u32) -> IntType<'ctx> {
pub fn ptr_int(ctx: &Context, ptr_bytes: u32) -> IntType<'_> {
match ptr_bytes {
1 => ctx.i8_type(),
2 => ctx.i16_type(),