Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Re-export pub stuff from universal_exports.rs + removed unecessary clone #6145

Merged
merged 2 commits into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xcm/src/v3/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ pub fn send_xcm<T: SendXcm>(
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))
}
3 changes: 2 additions & 1 deletion xcm/xcm-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
2 changes: 1 addition & 1 deletion xcm/xcm-executor/src/traits/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub fn export_xcm<T: ExportXcm>(
channel,
&mut Some(universal_source),
&mut Some(dest),
&mut Some(msg.clone()),
&mut Some(msg),
)?;
let hash = T::deliver(ticket)?;
Ok((hash, price))
Expand Down