mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 22:35:41 +00:00
metadata: Fix cargo clippy (#1574)
* metadata: Fix cargo clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * subxt/backend: Fix clone clippy Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * tests: Use clone into Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -344,7 +344,7 @@ fn generate_outer_enums(
|
|||||||
let Some(last) = call_path.last_mut() else {
|
let Some(last) = call_path.last_mut() else {
|
||||||
return Err(TryFromError::InvalidTypePath("RuntimeCall".into()));
|
return Err(TryFromError::InvalidTypePath("RuntimeCall".into()));
|
||||||
};
|
};
|
||||||
*last = "RuntimeError".to_owned();
|
"RuntimeError".clone_into(last);
|
||||||
generate_outer_error_enum_type(metadata, call_path)
|
generate_outer_error_enum_type(metadata, call_path)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -267,8 +267,9 @@ impl<Hash: BlockHash> Shared<Hash> {
|
|||||||
|
|
||||||
shared.seen_runtime_events.clear();
|
shared.seen_runtime_events.clear();
|
||||||
|
|
||||||
init_message.finalized_block_hashes =
|
init_message
|
||||||
finalized_ev.finalized_block_hashes.clone();
|
.finalized_block_hashes
|
||||||
|
.clone_from(&finalized_ev.finalized_block_hashes);
|
||||||
|
|
||||||
if let Some(runtime_ev) = newest_runtime {
|
if let Some(runtime_ev) = newest_runtime {
|
||||||
init_message.finalized_block_runtime = Some(runtime_ev);
|
init_message.finalized_block_runtime = Some(runtime_ev);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ impl MetadataTestRunnerCaseBuilder {
|
|||||||
|
|
||||||
/// Set the test name.
|
/// Set the test name.
|
||||||
pub fn name(mut self, name: impl AsRef<str>) -> Self {
|
pub fn name(mut self, name: impl AsRef<str>) -> Self {
|
||||||
self.name = name.as_ref().to_owned();
|
name.as_ref().clone_into(&mut self.name);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user