Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 23, 2024
1 parent 292c445 commit 4e130dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/polars-utils/src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4e130dd

Please sign in to comment.