mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Fixed clippy warnings (#537)
* fixed clippy warnings * Revert "Actually use pinned nightly version when building runtimes (#465)" This reverts commit dedddb6b0f22260e00053c28873a0cb1fbea22e2. * Revert "Pin Rust Nightly Version (#420)" This reverts commit 8902ac2030cf7ef48ec512463424f134a3b38804. * fix after revert * another fix after revert * more clippy fixes
This commit is contained in:
committed by
Bastian Köcher
parent
4f661d2fe0
commit
c20b4c868f
@@ -357,9 +357,10 @@ fn target_accept_all_headers(method: &TargetMethod, data: &mut TargetData, requi
|
||||
if let TargetMethod::SubmitHeaders(ref submitted) = method {
|
||||
assert_eq!(submitted.iter().all(|header| header.extra().is_some()), requires_extra,);
|
||||
|
||||
let mut submitted_headers = SubmittedHeaders::default();
|
||||
submitted_headers.submitted = submitted.iter().map(|header| header.id()).collect();
|
||||
data.submit_headers_result = Some(submitted_headers);
|
||||
data.submit_headers_result = Some(SubmittedHeaders {
|
||||
submitted: submitted.iter().map(|header| header.id()).collect(),
|
||||
..Default::default()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user