From f97b67b332ed9959602c0cfdb8d4a586a3b60874 Mon Sep 17 00:00:00 2001 From: sezna Date: Thu, 25 Jul 2024 10:43:35 -0400 Subject: [PATCH] Clippy --- petr-ir/src/lib.rs | 3 ++- petr-vm/src/lib.rs | Bin 16436 -> 16552 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/petr-ir/src/lib.rs b/petr-ir/src/lib.rs index 33b4f95..95ca0a6 100644 --- a/petr-ir/src/lib.rs +++ b/petr-ir/src/lib.rs @@ -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 @@ -310,6 +310,7 @@ impl Lowerer { } } + #[allow(clippy::wrong_self_convention)] fn to_ir_type( &mut self, param_ty: TypeVariable, diff --git a/petr-vm/src/lib.rs b/petr-vm/src/lib.rs index 630b4e614589c44f9d7ebca307ba3c7ba9124829..6455bc7f072f822bd8538f2f3e71be3169455686 100644 GIT binary patch delta 207 zcmdnez__B3al>1#$qj<69{O4erFqHuxw)x%B?{#ksd);C>FGtO>4_z&3MG{VsS3HN zx%owv3OR|D`K3S=`9;~qTnZ4N99@!HToMcBPX5WIHJOE1d~&4#&txlZbrz74$%)+3 zlPkEDH9(xY;*u0SplN!=nN_Lr`Dq%7nlOVDl$3QKrtIO8)-*QKREmZ0LHa-dp|TdP MM@xV63vM4102*pH;s5{u delta 59 zcmV-B0L1^OfdRCD0kG`~lV}bTlR*n3ldcRGlZOi@k`yD8*$Wqw^a~i1lNA?}&k6_y RGcqY6U6cM2BeQM{Iy8C~6b}FZ