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:
@@ -78,14 +78,15 @@ impl MaybeInfDelay {
|
||||
},
|
||||
Inner::Finite(delay) => delay.reset(duration),
|
||||
},
|
||||
None =>
|
||||
None => {
|
||||
self.0 = match std::mem::replace(
|
||||
&mut self.0,
|
||||
Inner::Infinite { waker: None, delay: None },
|
||||
) {
|
||||
Inner::Finite(delay) => Inner::Infinite { waker: None, delay: Some(delay) },
|
||||
infinite => infinite,
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,8 +92,9 @@ impl mixnet::request_manager::Request for Request {
|
||||
|
||||
fn with_data<T>(&self, f: impl FnOnce(Scattered<u8>) -> T, _context: &Self::Context) -> T {
|
||||
match self {
|
||||
Request::SubmitExtrinsic { extrinsic, .. } =>
|
||||
f([&[SUBMIT_EXTRINSIC][..], extrinsic.0.as_slice()].as_slice().into()),
|
||||
Request::SubmitExtrinsic { extrinsic, .. } => {
|
||||
f([&[SUBMIT_EXTRINSIC][..], extrinsic.0.as_slice()].as_slice().into())
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user