cargo fmt --all

This commit is contained in:
KtorZ 2024-03-09 01:28:48 +01:00
parent bbe7c0bc01
commit 77faee672e
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 5 additions and 9 deletions

View File

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