Skip to content

Commit

Permalink
manual clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Jun 26, 2023
1 parent 862205e commit 66092a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/compiler/gen_llvm/src/llvm/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down
2 changes: 1 addition & 1 deletion crates/compiler/mono/src/drop_specialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ impl<'a> DropSpecializationEnvironment<'a> {
}
}

fn create_symbol<'i>(&self, ident_ids: &'i mut IdentIds, debug_name: &str) -> Symbol {
fn create_symbol(&self, ident_ids: &mut IdentIds, debug_name: &str) -> Symbol {
let ident_id = ident_ids.add_str(debug_name);
Symbol::new(self.home, ident_id)
}
Expand Down
4 changes: 2 additions & 2 deletions crates/compiler/mono/src/reset_reuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1317,8 +1317,8 @@ fn drop_unused_reuse_tokens<'a>(
})
}

fn get_reuse_layout_info<'a, 'i>(
layout_interner: &'i STLayoutInterner<'a>,
fn get_reuse_layout_info<'a>(
layout_interner: &STLayoutInterner<'a>,
union_layout: UnionLayout<'a>,
) -> TokenLayout {
let (size, alignment) = union_layout.data_size_and_alignment(layout_interner);
Expand Down

0 comments on commit 66092a9

Please sign in to comment.