From 1843b7e73b53f869580dbce13140ce9084af0ce6 Mon Sep 17 00:00:00 2001 From: Kasey White Date: Wed, 1 Feb 2023 22:31:13 -0500 Subject: [PATCH] clippy fix and remove some prints --- crates/aiken-lang/src/uplc.rs | 4 ---- crates/uplc/src/ast.rs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/aiken-lang/src/uplc.rs b/crates/aiken-lang/src/uplc.rs index 7dd80713..667abe6e 100644 --- a/crates/aiken-lang/src/uplc.rs +++ b/crates/aiken-lang/src/uplc.rs @@ -113,12 +113,8 @@ impl<'a> CodeGenerator<'a> { term, }; - println!("{}", program.to_pretty()); - program = aiken_optimize_and_intern(program); - println!("{}", program.to_pretty()); - program } diff --git a/crates/uplc/src/ast.rs b/crates/uplc/src/ast.rs index 20087b4f..f3b44189 100644 --- a/crates/uplc/src/ast.rs +++ b/crates/uplc/src/ast.rs @@ -349,7 +349,7 @@ impl PartialEq for NamedDeBruijn { /// This is useful for decoding a on chain program into debruijn form. /// It allows for injecting fake textual names while also using Debruijn for decoding /// without having to loop through twice. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone)] pub struct FakeNamedDeBruijn(pub NamedDeBruijn); impl From for FakeNamedDeBruijn {