manual clippy fixes

This commit is contained in:
Folkert 2023-06-26 20:45:39 +02:00
parent ef39bad7c6
commit 2d616d1fe9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 9 additions and 9 deletions

View file

@ -14,8 +14,8 @@ use roc_target::TargetInfo;
use super::struct_::RocStruct;
pub fn basic_type_from_layout<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
pub fn basic_type_from_layout<'a, 'ctx>(
env: &Env<'a, 'ctx, '_>,
layout_interner: &STLayoutInterner<'a>,
layout: LayoutRepr<'_>,
) -> BasicTypeEnum<'ctx> {

View file

@ -1832,7 +1832,7 @@ fn throw_on_overflow<'ctx>(
.unwrap()
}
fn throw_because_overflow<'ctx>(env: &Env<'_, 'ctx, '_>, message: &str) {
fn throw_because_overflow(env: &Env<'_, '_, '_>, message: &str) {
let block = env.builder.get_insert_block().expect("to be in a function");
let di_location = env.builder.get_current_debug_location().unwrap();

View file

@ -153,7 +153,7 @@ fn index_struct_ptr<'a, 'ctx>(
let field_layout = field_layouts[index as usize];
let field_repr = layout_interner.get_repr(field_layout);
let name = format!("struct_field_access_record_{}", index);
let name = format!("struct_field_access_record_{index}");
let field_value = env
.builder
.new_build_struct_gep(struct_type, ptr, index as u32, &name)