Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Sep 10, 2024
1 parent ddc63b3 commit 072f0b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ impl ParquetSourceNode {
);

if path_idx == 0 {
return Ok((0, byte_source, MemSlice::from_slice(&[])));
let metadata_bytes = MemSlice::EMPTY;
return Ok((0, byte_source, metadata_bytes));
}

let (metadata_bytes, maybe_full_bytes) =
Expand Down
4 changes: 1 addition & 3 deletions crates/polars-utils/src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ mod private {
}

impl MemSlice {
pub const fn empty() -> Self {
Self::from_static(&[])
}
pub const EMPTY: Self = Self::from_static(&[]);

/// Copy the contents into a new owned `Vec`
#[inline(always)]
Expand Down

0 comments on commit 072f0b5

Please sign in to comment.