Skip to content

Commit

Permalink
Remove experimental feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Sep 17, 2024
1 parent 03bb2f0 commit 2403ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic_storage/mmap_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl<T: Pod> MmapVec<T> {
/// Notably this means that there can exist no other mutable mappings to the
/// same file in this process or any other
pub unsafe fn restore(file: File) -> color_eyre::Result<Self> {
const { assert!(std::mem::size_of::<T>() != 0) };
assert!(std::mem::size_of::<T>() != 0);

let mut byte_len = file.metadata()?.len() as usize;

Expand Down

0 comments on commit 2403ae1

Please sign in to comment.