Clippy
Clippy has a build failure locally, for some reason, so I have to use CICD to find these
This commit is contained in:
parent
189150612c
commit
723c347a1a
|
@ -18,7 +18,7 @@ fn constant_list_integer() {
|
||||||
round_trip(
|
round_trip(
|
||||||
Term::<Name>::Constant(
|
Term::<Name>::Constant(
|
||||||
Constant::ProtoList(
|
Constant::ProtoList(
|
||||||
Type::Integer.into(),
|
Type::Integer,
|
||||||
vec![
|
vec![
|
||||||
Constant::Integer(0.to_bigint().unwrap()),
|
Constant::Integer(0.to_bigint().unwrap()),
|
||||||
Constant::Integer(1.to_bigint().unwrap()),
|
Constant::Integer(1.to_bigint().unwrap()),
|
||||||
|
@ -36,8 +36,8 @@ fn constant_pair_bool_bytestring() {
|
||||||
round_trip(
|
round_trip(
|
||||||
Term::<Name>::Constant(
|
Term::<Name>::Constant(
|
||||||
Constant::ProtoPair(
|
Constant::ProtoPair(
|
||||||
Type::Bool.into(),
|
Type::Bool,
|
||||||
Type::ByteString.into(),
|
Type::ByteString,
|
||||||
Constant::Bool(true).into(),
|
Constant::Bool(true).into(),
|
||||||
Constant::ByteString(vec![0x01, 0x23, 0x45]).into(),
|
Constant::ByteString(vec![0x01, 0x23, 0x45]).into(),
|
||||||
)
|
)
|
||||||
|
@ -52,8 +52,8 @@ fn constant_pair_unit_string() {
|
||||||
round_trip(
|
round_trip(
|
||||||
Term::<Name>::Constant(
|
Term::<Name>::Constant(
|
||||||
Constant::ProtoPair(
|
Constant::ProtoPair(
|
||||||
Type::Unit.into(),
|
Type::Unit,
|
||||||
Type::String.into(),
|
Type::String,
|
||||||
Constant::Unit.into(),
|
Constant::Unit.into(),
|
||||||
Constant::String("hello universe".into()).into(),
|
Constant::String("hello universe".into()).into(),
|
||||||
)
|
)
|
||||||
|
@ -78,17 +78,17 @@ fn constant_deeply_nested_list() {
|
||||||
vec![
|
vec![
|
||||||
Constant::ProtoList(
|
Constant::ProtoList(
|
||||||
t0.clone(),
|
t0.clone(),
|
||||||
vec![Constant::Integer(-1.to_bigint().unwrap())],
|
vec![Constant::Integer((-1).to_bigint().unwrap())],
|
||||||
),
|
),
|
||||||
Constant::ProtoList(t0.clone(), vec![]),
|
Constant::ProtoList(t0.clone(), vec![]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Constant::ProtoList(
|
Constant::ProtoList(
|
||||||
t1.clone(),
|
t1,
|
||||||
vec![
|
vec![
|
||||||
Constant::ProtoList(t0.clone(), vec![]),
|
Constant::ProtoList(t0.clone(), vec![]),
|
||||||
Constant::ProtoList(
|
Constant::ProtoList(
|
||||||
t0.clone(),
|
t0,
|
||||||
vec![
|
vec![
|
||||||
Constant::Integer(2.to_bigint().unwrap()),
|
Constant::Integer(2.to_bigint().unwrap()),
|
||||||
Constant::Integer(3.to_bigint().unwrap()),
|
Constant::Integer(3.to_bigint().unwrap()),
|
||||||
|
|
Loading…
Reference in New Issue