Run formatter across the codebase (rust 1.84.1)

Signed-off-by: KtorZ <5680256+KtorZ@users.noreply.github.com>
This commit is contained in:
KtorZ 2025-02-08 15:00:55 +01:00
parent 774a249cd6
commit 55cc1b932e
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
4 changed files with 10 additions and 6 deletions

View File

@ -66,11 +66,15 @@ mod tests {
#[test] #[test]
fn g1_element() { fn g1_element() {
assert_expr!("#<Bls12_381, G1>\"950dfd33da2682260c76038dfb8bad6e84ae9d599a3c151815945ac1e6ef6b1027cd917f3907479d20d636ce437a41f5\""); assert_expr!(
"#<Bls12_381, G1>\"950dfd33da2682260c76038dfb8bad6e84ae9d599a3c151815945ac1e6ef6b1027cd917f3907479d20d636ce437a41f5\""
);
} }
#[test] #[test]
fn g2_element() { fn g2_element() {
assert_expr!("#<Bls12_381, G2>\"b0629fa1158c2d23a10413fe91d381a84d25e31d041cd0377d25828498fd02011b35893938ced97535395e4815201e67108bcd4665e0db25d602d76fa791fab706c54abf5e1a9e44b4ac1e6badf3d2ac0328f5e30be341677c8bac5dda7682f1\""); assert_expr!(
"#<Bls12_381, G2>\"b0629fa1158c2d23a10413fe91d381a84d25e31d041cd0377d25828498fd02011b35893938ced97535395e4815201e67108bcd4665e0db25d602d76fa791fab706c54abf5e1a9e44b4ac1e6badf3d2ac0328f5e30be341677c8bac5dda7682f1\""
);
} }
} }

View File

@ -1,11 +1,11 @@
use crate::{ use crate::{
Annotated, Schema,
blueprint::{ blueprint::{
parameter::Parameter, parameter::Parameter,
schema::{Data, Declaration, Items}, schema::{Data, Declaration, Items},
}, },
Annotated, Schema,
}; };
use aiken_lang::tipo::{Type, TypeAliasAnnotation, TypeVar, pretty::resolve_alias}; use aiken_lang::tipo::{pretty::resolve_alias, Type, TypeAliasAnnotation, TypeVar};
use itertools::Itertools; use itertools::Itertools;
use serde::{ use serde::{
self, self,

View File

@ -5,8 +5,8 @@ use super::{
}; };
use std::{iter, ops::Deref}; use std::{iter, ops::Deref};
use uplc::{ use uplc::{
PlutusData,
ast::{Constant, Data as UplcData}, ast::{Constant, Data as UplcData},
PlutusData,
}; };
#[derive(Debug, PartialEq, Eq, Clone, serde::Serialize, serde::Deserialize)] #[derive(Debug, PartialEq, Eq, Clone, serde::Serialize, serde::Deserialize)]

View File

@ -1117,7 +1117,7 @@ Here's the types I followed and that led me to this problem:
pub mod tests { pub mod tests {
use super::*; use super::*;
use proptest::prelude::*; use proptest::prelude::*;
use serde_json::{self, Value, json}; use serde_json::{self, json, Value};
pub fn assert_json(schema: &impl Serialize, expected: Value) { pub fn assert_json(schema: &impl Serialize, expected: Value) {
assert_eq!(serde_json::to_value(schema).unwrap(), expected); assert_eq!(serde_json::to_value(schema).unwrap(), expected);