cargo fmt --all

This commit is contained in:
KtorZ 2024-03-04 14:46:10 +01:00
parent 6a4841dd7f
commit 8e8e0de044
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 2 additions and 4 deletions

View File

@ -396,10 +396,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(),