mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
Clippy fixes (#2033)
* clippy fixed * wasm clippy * clippy fixes * post clippy fmt * last clippy fix
This commit is contained in:
@@ -239,7 +239,7 @@ fn pallets_as_string(metadata: &Metadata) -> String {
|
||||
let mut strings: Vec<_> = metadata.pallets().map(|p| p.name()).collect();
|
||||
strings.sort();
|
||||
for pallet in strings {
|
||||
write!(output, "\n {}", pallet).unwrap();
|
||||
write!(output, "\n {pallet}").unwrap();
|
||||
}
|
||||
output
|
||||
}
|
||||
@@ -254,7 +254,7 @@ pub fn runtime_apis_as_string(metadata: &Metadata) -> String {
|
||||
let mut strings: Vec<_> = metadata.runtime_api_traits().map(|p| p.name()).collect();
|
||||
strings.sort();
|
||||
for api in strings {
|
||||
write!(output, "\n {}", api).unwrap();
|
||||
write!(output, "\n {api}").unwrap();
|
||||
}
|
||||
output
|
||||
}
|
||||
|
||||
@@ -206,10 +206,8 @@ fn storage_entries_string(storage_metadata: &StorageMetadata, pallet_name: &str)
|
||||
if storage_metadata.entries().is_empty() {
|
||||
format!("No {storage_entry_placeholder}'s available in the \"{pallet_name}\" pallet.")
|
||||
} else {
|
||||
let mut output = format!(
|
||||
"Available {storage_entry_placeholder}'s in the \"{}\" pallet:",
|
||||
pallet_name
|
||||
);
|
||||
let mut output =
|
||||
format!("Available {storage_entry_placeholder}'s in the \"{pallet_name}\" pallet:");
|
||||
let mut strings: Vec<_> = storage_metadata
|
||||
.entries()
|
||||
.iter()
|
||||
@@ -217,7 +215,7 @@ fn storage_entries_string(storage_metadata: &StorageMetadata, pallet_name: &str)
|
||||
.collect();
|
||||
strings.sort();
|
||||
for entry in strings {
|
||||
write!(output, "\n {}", entry).unwrap();
|
||||
write!(output, "\n {entry}").unwrap();
|
||||
}
|
||||
output
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user