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:
@@ -405,9 +405,9 @@ impl<T: Config<I>, I: 'static> Pezpallet<T, I> {
|
||||
leaves: Vec<LeafOf<T, I>>,
|
||||
proof: LeafProof<HashOf<T, I>>,
|
||||
) -> Result<(), Error> {
|
||||
if proof.leaf_count > NumberOfLeaves::<T, I>::get() ||
|
||||
proof.leaf_count == 0 ||
|
||||
proof.items.len().saturating_add(leaves.len()) as u64 > proof.leaf_count
|
||||
if proof.leaf_count > NumberOfLeaves::<T, I>::get()
|
||||
|| proof.leaf_count == 0
|
||||
|| proof.items.len().saturating_add(leaves.len()) as u64 > proof.leaf_count
|
||||
{
|
||||
return Err(
|
||||
Error::Verify.log_debug("The proof has incorrect number of leaves or proof items.")
|
||||
|
||||
Reference in New Issue
Block a user