From f8aae49fce930cfb3c43b6c1d9dd288b702772e6 Mon Sep 17 00:00:00 2001 From: Turner Date: Mon, 27 Jun 2022 17:10:17 -0700 Subject: [PATCH] Appease Clippy-sama --- crates/program_builder/Cargo.toml | 2 +- crates/program_builder/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/program_builder/Cargo.toml b/crates/program_builder/Cargo.toml index 5a2c61f7..e076f18a 100644 --- a/crates/program_builder/Cargo.toml +++ b/crates/program_builder/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" [dependencies] # 1st party -uplc = { path = '../uplc', version = "0.0.3" } +uplc = { path = '../uplc', version = "0.0.5" } diff --git a/crates/program_builder/src/lib.rs b/crates/program_builder/src/lib.rs index 84043d5f..c9336619 100644 --- a/crates/program_builder/src/lib.rs +++ b/crates/program_builder/src/lib.rs @@ -67,7 +67,7 @@ impl WithTerm for NeedsTerm { let next_unique = self.next_unique.get(); self.next_unique.set(next_unique + 1); let unique = Unique::new(next_unique); - names.insert(name_str.to_string(), unique.clone()); + names.insert(name_str.to_string(), unique); Name { text: name_str.to_string(), unique, @@ -93,6 +93,7 @@ impl WithTerm for LambdaBuilder { } impl Builder { + #[allow(clippy::new_ret_no_self)] pub fn new(maj: usize, min: usize, patch: usize) -> NeedsTerm { NeedsTerm { version: (maj, min, patch),