Skip to content
Snippets Groups Projects
Commit b11cb4c7 authored by Éloïs's avatar Éloïs Committed by Pascal Engélibert
Browse files

rustfmt

parent 612107fc
No related branches found
No related tags found
1 merge request!320Resolve "Perf: use host function to verify legacy revocation document"
...@@ -45,14 +45,7 @@ impl From<AccountId32Mock> for u64 { ...@@ -45,14 +45,7 @@ impl From<AccountId32Mock> for u64 {
impl From<[u8; 32]> for AccountId32Mock { impl From<[u8; 32]> for AccountId32Mock {
fn from(bytes: [u8; 32]) -> Self { fn from(bytes: [u8; 32]) -> Self {
Self(u64::from_be_bytes([ Self(u64::from_be_bytes([
bytes[0], bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7],
bytes[1],
bytes[2],
bytes[3],
bytes[4],
bytes[5],
bytes[6],
bytes[7]
])) ]))
} }
} }
......
...@@ -39,14 +39,7 @@ impl From<AccountId32Mock> for u64 { ...@@ -39,14 +39,7 @@ impl From<AccountId32Mock> for u64 {
impl From<[u8; 32]> for AccountId32Mock { impl From<[u8; 32]> for AccountId32Mock {
fn from(bytes: [u8; 32]) -> Self { fn from(bytes: [u8; 32]) -> Self {
Self(u64::from_be_bytes([ Self(u64::from_be_bytes([
bytes[0], bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7],
bytes[1],
bytes[2],
bytes[3],
bytes[4],
bytes[5],
bytes[6],
bytes[7]
])) ]))
} }
} }
......
...@@ -176,7 +176,9 @@ pub mod pallet { ...@@ -176,7 +176,9 @@ pub mod pallet {
type Signer: IdentifyAccount<AccountId = Self::AccountId>; type Signer: IdentifyAccount<AccountId = Self::AccountId>;
/// Signature type for payload verification. /// Signature type for payload verification.
type Signature: Parameter + Verify<Signer = Self::Signer> + From<sp_core::ed25519::Signature>; type Signature: Parameter
+ Verify<Signer = Self::Signer>
+ From<sp_core::ed25519::Signature>;
/// The overarching event type. /// The overarching event type.
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment