From 4e130dd8351cd26d74ab7e66008cf9c227520392 Mon Sep 17 00:00:00 2001 From: ritchie Date: Mon, 23 Dec 2024 16:18:10 +0100 Subject: [PATCH] imports --- crates/polars-utils/src/mmap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/polars-utils/src/mmap.rs b/crates/polars-utils/src/mmap.rs index 188dda93a27..c3331e3213e 100644 --- a/crates/polars-utils/src/mmap.rs +++ b/crates/polars-utils/src/mmap.rs @@ -287,6 +287,7 @@ impl MMapSemaphore { // Set mmap size based on seek to end when running under Emscripten #[cfg(target_os = "emscripten")] { + use std::io::{Seek, SeekFrom}; let mut file = file; let size = file.seek(SeekFrom::End(0)).unwrap(); options.len((size - offset) as usize);