mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
Run cargo fmt on the whole code base (#9394)
* Run cargo fmt on the whole code base * Second run * Add CI check * Fix compilation * More unnecessary braces * Handle weights * Use --all * Use correct attributes... * Fix UI tests * AHHHHHHHHH * 🤦 * Docs * Fix compilation * 🤷 * Please stop * 🤦 x 2 * More * make rustfmt.toml consistent with polkadot Co-authored-by: André Silva <andrerfosilva@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
//! into a WASM file.
|
||||
|
||||
use codec::Encode;
|
||||
use parity_wasm::elements::{Module, deserialize_buffer, serialize};
|
||||
use parity_wasm::elements::{deserialize_buffer, serialize, Module};
|
||||
|
||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
@@ -40,7 +40,8 @@ pub fn embed_runtime_version(
|
||||
) -> Result<Vec<u8>, Error> {
|
||||
let mut module: Module = deserialize_buffer(wasm).map_err(|_| Error::Deserialize)?;
|
||||
|
||||
let apis = version.apis
|
||||
let apis = version
|
||||
.apis
|
||||
.iter()
|
||||
.map(Encode::encode)
|
||||
.map(|v| v.into_iter())
|
||||
|
||||
Reference in New Issue
Block a user