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(