style: Migrate to stable-only rustfmt configuration
- Remove nightly-only features from .rustfmt.toml and vendor/ss58-registry/rustfmt.toml - Removed features: imports_granularity, wrap_comments, comment_width, reorder_impl_items, spaces_around_ranges, binop_separator, match_arm_blocks, trailing_semicolon, trailing_comma - Format all 898 affected files with stable rustfmt - Ensures long-term reliability without nightly toolchain dependency
This commit is contained in:
@@ -134,8 +134,9 @@ impl Proof {
|
||||
match self {
|
||||
Proof::Sr25519 { signer, .. } => *signer,
|
||||
Proof::Ed25519 { signer, .. } => *signer,
|
||||
Proof::Secp256k1Ecdsa { signer, .. } =>
|
||||
<pezsp_runtime::traits::BlakeTwo256 as pezsp_core::Hasher>::hash(signer).into(),
|
||||
Proof::Secp256k1Ecdsa { signer, .. } => {
|
||||
<pezsp_runtime::traits::BlakeTwo256 as pezsp_core::Hasher>::hash(signer).into()
|
||||
},
|
||||
Proof::OnChain { who, .. } => *who,
|
||||
}
|
||||
}
|
||||
@@ -477,12 +478,12 @@ impl Statement {
|
||||
fn encoded(&self, for_signing: bool) -> Vec<u8> {
|
||||
// Encoding matches that of Vec<Field>. Basically this just means accepting that there
|
||||
// will be a prefix of vector length.
|
||||
let num_fields = if !for_signing && self.proof.is_some() { 1 } else { 0 } +
|
||||
if self.decryption_key.is_some() { 1 } else { 0 } +
|
||||
if self.priority.is_some() { 1 } else { 0 } +
|
||||
if self.channel.is_some() { 1 } else { 0 } +
|
||||
if self.data.is_some() { 1 } else { 0 } +
|
||||
self.num_topics as u32;
|
||||
let num_fields = if !for_signing && self.proof.is_some() { 1 } else { 0 }
|
||||
+ if self.decryption_key.is_some() { 1 } else { 0 }
|
||||
+ if self.priority.is_some() { 1 } else { 0 }
|
||||
+ if self.channel.is_some() { 1 } else { 0 }
|
||||
+ if self.data.is_some() { 1 } else { 0 }
|
||||
+ self.num_topics as u32;
|
||||
|
||||
let mut output = Vec::new();
|
||||
// When encoding signature payload, the length prefix is omitted.
|
||||
|
||||
Reference in New Issue
Block a user