From 4ab1dee12f8576703b361e0cca8ca2e8db67c43d Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Thu, 30 Apr 2026 03:55:29 +0300 Subject: [PATCH] style: apply cargo fmt to build.rs and location_conversion.rs --- bizinikiwi/pezframe/revive/fixtures/build.rs | 7 ++----- pezkuwi/xcm/xcm-builder/src/location_conversion.rs | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bizinikiwi/pezframe/revive/fixtures/build.rs b/bizinikiwi/pezframe/revive/fixtures/build.rs index e6105d6d..9f317bb2 100644 --- a/bizinikiwi/pezframe/revive/fixtures/build.rs +++ b/bizinikiwi/pezframe/revive/fixtures/build.rs @@ -223,11 +223,8 @@ fn post_process(input_path: &Path, output_path: &Path) -> Result<()> { config.set_strip(strip); config.set_optimize(optimize); let orig = fs::read(input_path).with_context(|| format!("Failed to read {input_path:?}"))?; - let linked = polkavm_linker::program_from_elf( - config, - orig.as_ref(), - ) - .map_err(|err| anyhow::format_err!("Failed to link polkavm program: {}", err))?; + let linked = polkavm_linker::program_from_elf(config, orig.as_ref()) + .map_err(|err| anyhow::format_err!("Failed to link polkavm program: {}", err))?; fs::write(output_path, linked).with_context(|| format!("Failed to write {output_path:?}"))?; Ok(()) } diff --git a/pezkuwi/xcm/xcm-builder/src/location_conversion.rs b/pezkuwi/xcm/xcm-builder/src/location_conversion.rs index 14fa74a4..577d972e 100644 --- a/pezkuwi/xcm/xcm-builder/src/location_conversion.rs +++ b/pezkuwi/xcm/xcm-builder/src/location_conversion.rs @@ -58,9 +58,7 @@ pub struct DescribePalletTerminal; impl DescribeLocation for DescribePalletTerminal { fn describe_location(l: &Location) -> Option> { match l.unpack() { - (0, [PalletInstance(i)]) => { - Some((b"Pallet", Compact::::from(*i as u32)).encode()) - }, + (0, [PalletInstance(i)]) => Some((b"Pallet", Compact::::from(*i as u32)).encode()), _ => return None, } }