fmt for whole workspace

This commit is contained in:
Tadeo hepperle
2024-02-02 17:02:00 +01:00
parent e5ee97148a
commit bc6cd9b885
4 changed files with 6 additions and 225 deletions
-2
View File
@@ -288,8 +288,6 @@ impl From<U256> for NumberOrHex {
}
}
#[cfg(test)]
mod test {
use super::*;
+1 -2
View File
@@ -33,8 +33,7 @@ pub use config::{
pub use metadata::Metadata;
pub use signer::Signer;
pub use storage::StorageAddress;
pub use utils::{AccountId32, MultiAddress, MultiSignature, H160, H256, H512, Yes, to_hex};
pub use utils::{to_hex, AccountId32, MultiAddress, MultiSignature, Yes, H160, H256, H512};
#[macro_use]
mod macros;
+5 -6
View File
@@ -5,8 +5,8 @@
//! Miscellaneous utility helpers.
use alloc::borrow::ToOwned;
use alloc::vec::Vec;
use alloc::string::String;
use alloc::vec::Vec;
use codec::{Compact, Decode, Encode};
use derivative::Derivative;
@@ -27,7 +27,6 @@ pub use static_type::Static;
pub use unchecked_extrinsic::UncheckedExtrinsic;
pub use wrapper_opaque::WrapperKeepOpaque;
// Used in codegen
#[doc(hidden)]
pub use primitive_types::{H160, H256, H512};
@@ -81,10 +80,10 @@ unsafe impl<T> Sync for PhantomDataSendSync<T> {}
/// as `BTreeMap` which allows us to easily swap the two during codegen.
pub type KeyedVec<K, V> = Vec<(K, V)>;
/// A unit marker struct signalling that some property is true
pub struct Yes;
/// A unit marker struct signalling that some property is true
pub struct Yes;
/// A quick helper to encode some bytes to hex.
/// A quick helper to encode some bytes to hex.
pub fn to_hex(bytes: impl AsRef<[u8]>) -> String {
alloc::format!("0x{}", hex::encode(bytes.as_ref()))
}
}