mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 23:27:56 +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:
@@ -70,7 +70,7 @@ impl MetadataTestRunnerCaseBuilder {
|
||||
|
||||
/// Set the test name.
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user