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);