auto clippy fixes

This commit is contained in:
Folkert 2023-06-26 20:42:50 +02:00
parent 72c85efc83
commit ef39bad7c6
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
146 changed files with 750 additions and 1005 deletions

View file

@ -329,8 +329,7 @@ fn build_neq<'a, 'ctx>(
) -> BasicValueEnum<'ctx> {
if lhs_layout != rhs_layout {
panic!(
"Inequality of different layouts; did you have a type mismatch?\n{:?} != {:?}",
lhs_layout, rhs_layout
"Inequality of different layouts; did you have a type mismatch?\n{lhs_layout:?} != {rhs_layout:?}"
);
}
@ -789,7 +788,7 @@ fn build_struct_eq_help<'a, 'ctx>(
.into_int_value()
};
current = ctx.append_basic_block(parent, &format!("eq_step_{}", index));
current = ctx.append_basic_block(parent, &format!("eq_step_{index}"));
env.builder
.build_conditional_branch(are_equal, current, return_false);