mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-04 18:01:07 +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:
1 parent
bc079e7c98
commit
a5d94a4b8b
3 files changed
+5
-4
No files matched your search
@@ -344,7 +344,7 @@ fn generate_outer_enums(
|
||||
let Some(last) = call_path.last_mut() else {
|
||||
return Err(TryFromError::InvalidTypePath("RuntimeCall".into()));
|
||||
};
|
||||
*last = "RuntimeError".to_owned();
|
||||
"RuntimeError".clone_into(last);
|
||||
generate_outer_error_enum_type(metadata, call_path)
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user