mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 22:01:04 +00:00
cargo +nightly fmt (#3540)
* cargo +nightly fmt * add cargo-fmt check to ci * update ci * fmt * fmt * skip macro * ignore bridges
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
//!
|
||||
//! These core Polkadot types are used by the relay chain and the Parachains.
|
||||
|
||||
use sp_runtime::{generic, MultiSignature, traits::{Verify, IdentifyAccount}};
|
||||
use parity_scale_codec::{Encode, Decode};
|
||||
use parity_scale_codec::{Decode, Encode};
|
||||
#[cfg(feature = "std")]
|
||||
use parity_util_mem::MallocSizeOf;
|
||||
use sp_runtime::{
|
||||
generic,
|
||||
traits::{IdentifyAccount, Verify},
|
||||
MultiSignature,
|
||||
};
|
||||
|
||||
pub use sp_runtime::traits::{BlakeTwo256, Hash as HashT};
|
||||
|
||||
@@ -64,7 +68,7 @@ pub type Hash = sp_core::H256;
|
||||
#[cfg_attr(feature = "std", derive(MallocSizeOf))]
|
||||
pub struct CandidateHash(pub Hash);
|
||||
|
||||
#[cfg(feature="std")]
|
||||
#[cfg(feature = "std")]
|
||||
impl std::fmt::Display for CandidateHash {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
self.0.fmt(f)
|
||||
|
||||
Reference in New Issue
Block a user