From 1cbebd2ec6b2622c3eb3201a4545388d16364aa3 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 28 Feb 2023 15:15:23 +0800 Subject: genins: fix minor error according to clippy * chain/src/item/genins.rs: Some minor fixes according to clippy. --- chain/src/item/genins.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chain') diff --git a/chain/src/item/genins.rs b/chain/src/item/genins.rs index feb45c6..41972c1 100644 --- a/chain/src/item/genins.rs +++ b/chain/src/item/genins.rs @@ -200,9 +200,7 @@ impl DefaultForest> { if matches!(nth_child_label.label().label().tnt(), Some(TNT::Non(_))) && !nth_child_label.is_packed() { - let sploned = self.splone(nth_child, Some(pos), nth_child_last, false)?; - - sploned + self.splone(nth_child, Some(pos), nth_child_last, false)? } else { nth_child } @@ -587,7 +585,7 @@ impl DefaultForest> { if pos == 4 && matches!(true_source, PaVi::Virtual(_, _, _)) { dbg!(&stack, reduction_info, true_source, pavi); - self.print_viz(&format!("pos4ib.gv")).unwrap(); + self.print_viz("pos4ib.gv").unwrap(); } for parent in stack { -- cgit v1.2.3-18-g5258