From 64500a7b882930179fcc388172d4fac4eb6d33f6 Mon Sep 17 00:00:00 2001 From: Branislav Kontur Date: Wed, 12 Oct 2022 18:12:20 +0200 Subject: [PATCH 1/2] Re-export `pub` stuff from universal_exports.rs --- xcm/xcm-builder/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcm/xcm-builder/src/lib.rs b/xcm/xcm-builder/src/lib.rs index f48480616ac5..1cb7fba9f5cc 100644 --- a/xcm/xcm-builder/src/lib.rs +++ b/xcm/xcm-builder/src/lib.rs @@ -79,6 +79,7 @@ pub use filter_asset_location::{Case, NativeAsset}; mod universal_exports; pub use universal_exports::{ - ExporterFor, LocalUnpaidExporter, NetworkExportTable, SovereignPaidRemoteExporter, + BridgeBlobDispatcher, BridgeMessage, DispatchBlob, DispatchBlobError, ExporterFor, HaulBlob, + HaulBlobExporter, LocalUnpaidExporter, NetworkExportTable, SovereignPaidRemoteExporter, UnpaidRemoteExporter, }; From f317849e3876cdaaa7ba37bb61617c29c6a93b8c Mon Sep 17 00:00:00 2001 From: Branislav Kontur Date: Wed, 12 Oct 2022 18:13:55 +0200 Subject: [PATCH 2/2] Removed unnecessary clone --- xcm/src/v3/traits.rs | 2 +- xcm/xcm-executor/src/traits/export.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xcm/src/v3/traits.rs b/xcm/src/v3/traits.rs index 028d8365c1e3..5d657b3e65d5 100644 --- a/xcm/src/v3/traits.rs +++ b/xcm/src/v3/traits.rs @@ -531,7 +531,7 @@ pub fn send_xcm( dest: MultiLocation, msg: Xcm<()>, ) -> result::Result<(XcmHash, MultiAssets), SendError> { - let (ticket, price) = T::validate(&mut Some(dest), &mut Some(msg.clone()))?; + let (ticket, price) = T::validate(&mut Some(dest), &mut Some(msg))?; let hash = T::deliver(ticket)?; Ok((hash, price)) } diff --git a/xcm/xcm-executor/src/traits/export.rs b/xcm/xcm-executor/src/traits/export.rs index 6a846fb0b75a..498cea4bce56 100644 --- a/xcm/xcm-executor/src/traits/export.rs +++ b/xcm/xcm-executor/src/traits/export.rs @@ -120,7 +120,7 @@ pub fn export_xcm( channel, &mut Some(universal_source), &mut Some(dest), - &mut Some(msg.clone()), + &mut Some(msg), )?; let hash = T::deliver(ticket)?; Ok((hash, price))