mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
manual clippy fixes
This commit is contained in:
parent
ef39bad7c6
commit
2d616d1fe9
6 changed files with 9 additions and 9 deletions
|
@ -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> {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue