Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Jul 25, 2024
1 parent 2fdbd70 commit f97b67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion petr-ir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Lowerer {

let return_reg = ctx.fresh_reg();
let return_dest = ReturnDestination::Reg(return_reg);
let mut expr_body = ctx.lower_expr(&func_def.body, return_dest).map_err(|e| e)?;
let mut expr_body = ctx.lower_expr(&func_def.body, return_dest)?;
buf.append(&mut expr_body);
// load return value into func return register

Expand Down Expand Up @@ -310,6 +310,7 @@ impl Lowerer {
}
}

#[allow(clippy::wrong_self_convention)]
fn to_ir_type(
&mut self,
param_ty: TypeVariable,
Expand Down
Binary file modified petr-vm/src/lib.rs
Binary file not shown.

0 comments on commit f97b67b

Please sign in to comment.