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:
@@ -369,7 +369,7 @@ impl RunningTask {
|
||||
|
||||
match response_recv.await {
|
||||
Ok((bytes, protocol)) => match protocol {
|
||||
_ if protocol == self.req_v2_protocol_name =>
|
||||
_ if protocol == self.req_v2_protocol_name => {
|
||||
match v2::ChunkFetchingResponse::decode(&mut &bytes[..]) {
|
||||
Ok(chunk_response) => Ok(Option::<ErasureChunk>::from(chunk_response)),
|
||||
Err(e) => {
|
||||
@@ -386,8 +386,9 @@ impl RunningTask {
|
||||
);
|
||||
Err(TaskError::PeerError)
|
||||
},
|
||||
},
|
||||
_ if protocol == self.req_v1_protocol_name =>
|
||||
}
|
||||
},
|
||||
_ if protocol == self.req_v1_protocol_name => {
|
||||
match v1::ChunkFetchingResponse::decode(&mut &bytes[..]) {
|
||||
Ok(chunk_response) => Ok(Option::<ChunkResponse>::from(chunk_response)
|
||||
.map(|c| c.recombine_into_chunk(&self.request.into()))),
|
||||
@@ -405,7 +406,8 @@ impl RunningTask {
|
||||
);
|
||||
Err(TaskError::PeerError)
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
gum::warn!(
|
||||
target: LOG_TARGET,
|
||||
|
||||
@@ -296,15 +296,15 @@ impl TestRun {
|
||||
self.chunk_responses.get(&req.peer).ok_or(network::RequestFailure::Refused);
|
||||
|
||||
if let Ok((resp, protocol)) = response {
|
||||
let chunk = if protocol ==
|
||||
&self.req_protocol_names.get_name(Protocol::ChunkFetchingV1)
|
||||
let chunk = if protocol
|
||||
== &self.req_protocol_names.get_name(Protocol::ChunkFetchingV1)
|
||||
{
|
||||
Into::<Option<v1::ChunkResponse>>::into(
|
||||
v1::ChunkFetchingResponse::decode(&mut &resp[..]).unwrap(),
|
||||
)
|
||||
.map(|c| c.chunk)
|
||||
} else if protocol ==
|
||||
&self.req_protocol_names.get_name(Protocol::ChunkFetchingV2)
|
||||
} else if protocol
|
||||
== &self.req_protocol_names.get_name(Protocol::ChunkFetchingV2)
|
||||
{
|
||||
Into::<Option<ErasureChunk>>::into(
|
||||
v2::ChunkFetchingResponse::decode(&mut &resp[..]).unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user