chore: fix fmt

This commit is contained in:
rvcas 2024-03-07 19:32:33 -05:00
parent 8e558d893f
commit fab6d5aff7
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
2 changed files with 9 additions and 15 deletions

View File

@ -833,12 +833,10 @@ impl TypeVar {
Self::Link { tipo } => tipo.get_inner_types(),
Self::Unbound { .. } => vec![],
var => {
vec![
Type::Var {
vec![Type::Var {
tipo: RefCell::new(var.clone()).into(),
}
.into(),
]
.into()]
}
}
}

View File

@ -396,10 +396,8 @@ impl Prng {
fn as_prng(cst: &PlutusData) -> Prng {
if let PlutusData::Constr(Constr { tag, fields, .. }) = cst {
if *tag == 121 + Prng::SEEDED {
if let [
PlutusData::BoundedBytes(bytes),
PlutusData::BoundedBytes(choices),
] = &fields[..]
if let [PlutusData::BoundedBytes(bytes), PlutusData::BoundedBytes(choices)] =
&fields[..]
{
return Prng::Seeded {
choices: choices.to_vec(),
@ -883,11 +881,9 @@ impl TryFrom<TypedExpr> for Assertion<TypedExpr> {
final_else,
..
} => {
if let [
IfBranch {
if let [IfBranch {
condition, body, ..
},
] = &branches[..]
}] = &branches[..]
{
let then_is_true = match body {
TypedExpr::Var {