Skip to content

Commit c2bb288

Browse files
committed
chore: fmt
in preparation for the next changeset that introduces fmt check, I format the affected crates. So far this uses rustfmt 1.6.0-stable (cc66ad4 2023-10-03)
1 parent 7aa4c6e commit c2bb288

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

sugondat-chain/pallets/blobs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ pub mod pallet {
143143
}
144144

145145
let Some(extrinsic_index) = <frame_system::Pallet<T>>::extrinsic_index() else {
146-
return Err(Error::<T>::NoExtrinsicIndex.into())
147-
};
146+
return Err(Error::<T>::NoExtrinsicIndex.into());
147+
};
148148

149149
let total_blobs_size = TotalBlobsSize::<T>::get();
150150
if total_blobs_size + blob_len > T::MaxTotalBlobSize::get() {

sugondat-nmt/src/ns.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ impl Namespace {
3838
}
3939
}
4040

41-
4241
impl fmt::Display for Namespace {
4342
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4443
// Print the namespace as a 4-byte hex string. We don't use `hex` crate here to avoid

sugondat-shim/src/cli.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ pub struct DockParams {
7878
group = "listen"
7979
)]
8080
pub port: u16,
81-
8281
// TODO: e.g. prometheus stuff, enabled docks, etc.
8382
}
8483

@@ -134,7 +133,7 @@ pub mod query {
134133
// - query blob <id> - returns the blob for a given key. The key here is the same sense as
135134
// described here https://github.com/thrumdev/sugondat/issues/9#issuecomment-1814005570.
136135

137-
use super::{SugondatRpcParams, KeyManagementParams, ENV_SUGONDAT_NAMESPACE};
136+
use super::{KeyManagementParams, SugondatRpcParams, ENV_SUGONDAT_NAMESPACE};
138137
use clap::{Args, Subcommand};
139138

140139
#[derive(Debug, Args)]
@@ -152,7 +151,7 @@ pub mod query {
152151
pub mod submit {
153152
//! CLI definition for the `query submit` subcommand.
154153
155-
use super::{SugondatRpcParams, KeyManagementParams, ENV_SUGONDAT_NAMESPACE};
154+
use super::{KeyManagementParams, SugondatRpcParams, ENV_SUGONDAT_NAMESPACE};
156155
use clap::Args;
157156

158157
#[derive(Debug, Args)]

sugondat-shim/src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Key management: sr25519 account key used for signing blob submission
22
//! transactions.
33
4-
use subxt_signer::sr25519::Seed;
54
use std::path::Path;
5+
use subxt_signer::sr25519::Seed;
66

77
pub use subxt_signer::sr25519::Keypair;
88

sugondat-shim/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
mod dock;
21
mod cli;
32
mod cmd;
3+
mod dock;
44
mod key;
55
mod sugondat_rpc;
66

sugondat-shim/src/sugondat_rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
use crate::key::Keypair;
12
use anyhow::Context;
23
use subxt::{backend::rpc::RpcClient, rpc_params, utils::H256, OnlineClient};
34
use sugondat_nmt::Namespace;
45
use sugondat_subxt::{
56
sugondat::runtime_types::bounded_collections::bounded_vec::BoundedVec, Header,
67
};
7-
use crate::key::Keypair;
88

99
// NOTE: we specifically avoid prolifiration of subxt types around the codebase. To that end, we
1010
// avoid returning H256 and instead return [u8; 32] directly.

0 commit comments

Comments
 (0)