diff options
author | JSDurand <mmemmew@gmail.com> | 2023-02-28 15:15:23 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-02-28 15:15:23 +0800 |
commit | 1cbebd2ec6b2622c3eb3201a4545388d16364aa3 (patch) | |
tree | f25afb3a8910b6c408a805015d9a73f8ca18c780 /chain | |
parent | fbaa420ed550e9c3e7cdc09d4a8ec22bfbd782a6 (diff) |
genins: fix minor error according to clippy
* chain/src/item/genins.rs: Some minor fixes according to clippy.
Diffstat (limited to 'chain')
-rw-r--r-- | chain/src/item/genins.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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<ForestLabel<GrammarLabel>> { 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<ForestLabel<GrammarLabel>> { 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 { |