From 723c347a1a4788dd1fc51125b223ee03ee8a52d9 Mon Sep 17 00:00:00 2001 From: Pi Lanningham Date: Tue, 4 Jul 2023 10:40:53 -0400 Subject: [PATCH] Clippy Clippy has a build failure locally, for some reason, so I have to use CICD to find these --- crates/uplc/tests/pretty_tests.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/uplc/tests/pretty_tests.rs b/crates/uplc/tests/pretty_tests.rs index 776c2306..9d864c9e 100644 --- a/crates/uplc/tests/pretty_tests.rs +++ b/crates/uplc/tests/pretty_tests.rs @@ -18,7 +18,7 @@ fn constant_list_integer() { round_trip( Term::::Constant( Constant::ProtoList( - Type::Integer.into(), + Type::Integer, vec![ Constant::Integer(0.to_bigint().unwrap()), Constant::Integer(1.to_bigint().unwrap()), @@ -36,8 +36,8 @@ fn constant_pair_bool_bytestring() { round_trip( Term::::Constant( Constant::ProtoPair( - Type::Bool.into(), - Type::ByteString.into(), + Type::Bool, + Type::ByteString, Constant::Bool(true).into(), Constant::ByteString(vec![0x01, 0x23, 0x45]).into(), ) @@ -52,8 +52,8 @@ fn constant_pair_unit_string() { round_trip( Term::::Constant( Constant::ProtoPair( - Type::Unit.into(), - Type::String.into(), + Type::Unit, + Type::String, Constant::Unit.into(), Constant::String("hello universe".into()).into(), ) @@ -78,17 +78,17 @@ fn constant_deeply_nested_list() { vec![ Constant::ProtoList( t0.clone(), - vec![Constant::Integer(-1.to_bigint().unwrap())], + vec![Constant::Integer((-1).to_bigint().unwrap())], ), Constant::ProtoList(t0.clone(), vec![]), ], ), Constant::ProtoList( - t1.clone(), + t1, vec![ Constant::ProtoList(t0.clone(), vec![]), Constant::ProtoList( - t0.clone(), + t0, vec![ Constant::Integer(2.to_bigint().unwrap()), Constant::Integer(3.to_bigint().unwrap()),