From bca467b9b34c9867048141f972af8453bb40ab37 Mon Sep 17 00:00:00 2001
From: clearloop <26088946+clearloop@users.noreply.github.com>
Date: Fri, 22 Dec 2023 08:29:10 +0800
Subject: [PATCH] chore(wasm-interface-common): import Range from core
---
primitives/wasm-interface-common/src/util.rs | 2 ++
primitives/wasm-interface/src/util.rs | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/primitives/wasm-interface-common/src/util.rs b/primitives/wasm-interface-common/src/util.rs
index 5f3a259434304..2b4ebd6e66517 100644
--- a/primitives/wasm-interface-common/src/util.rs
+++ b/primitives/wasm-interface-common/src/util.rs
@@ -16,6 +16,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
+use core::ops::Range;
+
/// Construct a range from an offset to a data length after the offset.
/// Returns None if the end of the range would exceed some maximum offset.
pub fn checked_range(offset: usize, len: usize, max: usize) -> Option> {
diff --git a/primitives/wasm-interface/src/util.rs b/primitives/wasm-interface/src/util.rs
index 0e37d889c21a2..72969b0c716c4 100644
--- a/primitives/wasm-interface/src/util.rs
+++ b/primitives/wasm-interface/src/util.rs
@@ -17,7 +17,6 @@
use super::*;
use wasmtime::{AsContext, AsContextMut};
-use sp_std::ops::Range;
pub use sp_wasm_interface_common::util::checked_range;
pub fn write_memory_from(