Appease Clippy-sama

This commit is contained in:
Turner 2022-06-27 17:10:17 -07:00 committed by Lucas
parent 6748395d9e
commit f8aae49fce
2 changed files with 3 additions and 2 deletions

View File

@ -7,4 +7,4 @@ edition = "2021"
[dependencies]
# 1st party
uplc = { path = '../uplc', version = "0.0.3" }
uplc = { path = '../uplc', version = "0.0.5" }

View File

@ -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<T: WithTerm> WithTerm for LambdaBuilder<T> {
}
impl Builder {
#[allow(clippy::new_ret_no_self)]
pub fn new(maj: usize, min: usize, patch: usize) -> NeedsTerm {
NeedsTerm {
version: (maj, min, patch),