diff --git a/common/mixnet-contract/src/gateway.rs b/common/mixnet-contract/src/gateway.rs index 54da623ccb..d4bae81d17 100644 --- a/common/mixnet-contract/src/gateway.rs +++ b/common/mixnet-contract/src/gateway.rs @@ -1,8 +1,8 @@ // due to code generated by JsonSchema #![allow(clippy::field_reassign_with_default)] -use cosmwasm_std::{Addr, Coin}; use crate::{IdentityKey, SphinxKey}; +use cosmwasm_std::{Addr, Coin}; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; use std::fmt::Display; @@ -102,7 +102,11 @@ pub struct PagedGatewayResponse { } impl PagedGatewayResponse { - pub fn new(nodes: Vec, per_page: usize, start_next_after: Option) -> Self { + pub fn new( + nodes: Vec, + per_page: usize, + start_next_after: Option, + ) -> Self { PagedGatewayResponse { nodes, per_page, diff --git a/common/mixnet-contract/src/mixnode.rs b/common/mixnet-contract/src/mixnode.rs index 38fdeda8b2..c4bfa7da41 100644 --- a/common/mixnet-contract/src/mixnode.rs +++ b/common/mixnet-contract/src/mixnode.rs @@ -1,8 +1,8 @@ // due to code generated by JsonSchema #![allow(clippy::field_reassign_with_default)] -use cosmwasm_std::{Addr, Coin}; use crate::{IdentityKey, SphinxKey}; +use cosmwasm_std::{Addr, Coin}; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; use std::fmt::Display; @@ -125,7 +125,11 @@ pub struct PagedResponse { } impl PagedResponse { - pub fn new(nodes: Vec, per_page: usize, start_next_after: Option) -> Self { + pub fn new( + nodes: Vec, + per_page: usize, + start_next_after: Option, + ) -> Self { PagedResponse { nodes, per_page,