From 8bca6ebdfd70293053a6520791e9dd85f70bf92c Mon Sep 17 00:00:00 2001 From: Folkert Date: Sun, 4 Jul 2021 23:10:44 +0200 Subject: [PATCH] make fewer things pub --- compiler/mono/src/decision_tree.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/mono/src/decision_tree.rs b/compiler/mono/src/decision_tree.rs index 878c69c30d..d374e99463 100644 --- a/compiler/mono/src/decision_tree.rs +++ b/compiler/mono/src/decision_tree.rs @@ -59,7 +59,7 @@ enum DecisionTree<'a> { } #[derive(Clone, Debug, PartialEq)] -pub enum GuardedTest<'a> { +enum GuardedTest<'a> { TestGuarded { test: Test<'a>, @@ -79,7 +79,8 @@ pub enum GuardedTest<'a> { } #[derive(Clone, Debug, PartialEq)] -pub enum Test<'a> { +#[allow(clippy::enum_variant_names)] +enum Test<'a> { IsCtor { tag_id: u8, tag_name: TagName, @@ -1049,7 +1050,7 @@ pub fn optimize_when<'a>( } #[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub struct PathInstruction { +struct PathInstruction { index: u64, tag_id: u8, }