cargo fmt

This commit is contained in:
Jędrzej Stuczyński
2021-06-18 12:15:34 +01:00
parent 50fbe55be9
commit dff7a8976a
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -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<GatewayBond>, per_page: usize, start_next_after: Option<IdentityKey>) -> Self {
pub fn new(
nodes: Vec<GatewayBond>,
per_page: usize,
start_next_after: Option<IdentityKey>,
) -> Self {
PagedGatewayResponse {
nodes,
per_page,
+6 -2
View File
@@ -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<MixNodeBond>, per_page: usize, start_next_after: Option<IdentityKey>) -> Self {
pub fn new(
nodes: Vec<MixNodeBond>,
per_page: usize,
start_next_after: Option<IdentityKey>,
) -> Self {
PagedResponse {
nodes,
per_page,