From 9369cbc1a32c73929af0bb719fbe1e66247fa0e2 Mon Sep 17 00:00:00 2001 From: microproofs Date: Thu, 10 Oct 2024 12:14:04 -0400 Subject: [PATCH] Remove some warnings --- crates/aiken-lang/src/gen_uplc/decision_tree.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/aiken-lang/src/gen_uplc/decision_tree.rs b/crates/aiken-lang/src/gen_uplc/decision_tree.rs index ccb2e830..19f5353e 100644 --- a/crates/aiken-lang/src/gen_uplc/decision_tree.rs +++ b/crates/aiken-lang/src/gen_uplc/decision_tree.rs @@ -14,7 +14,7 @@ struct Occurrence { } #[derive(Clone, Debug, Eq, PartialEq)] -enum Path { +pub enum Path { Pair(usize), Tuple(usize), } @@ -34,7 +34,7 @@ struct RowItem<'a> { } #[derive(Clone, Debug)] -struct Assign { +pub struct Assign { path: Vec, assigned: String, } @@ -80,7 +80,7 @@ impl Ord for CaseTest { } } -enum DecisionTree<'a> { +pub enum DecisionTree<'a> { Switch { subject_name: String, subject_tipo: Rc, @@ -228,7 +228,7 @@ pub fn build_tree<'a>( do_build_tree(subject_name, &subject_tipo, PatternMatrix { rows }) } -pub fn do_build_tree<'a>( +fn do_build_tree<'a>( subject_name: &String, subject_tipo: &Rc, matrix: PatternMatrix<'a>,