Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Sep 17, 2024
1 parent 231778d commit d87d441
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/generic_storage/mmap_vec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use std::fs::{File, OpenOptions};
use std::ops::{Deref, DerefMut};
use std::path::Path;
use std::{
fs::{File, OpenOptions},
ops::{Deref, DerefMut},
path::Path,
};

use bytemuck::Pod;
use color_eyre::eyre::{ensure, Context};
Expand All @@ -11,10 +13,10 @@ const META_SIZE: usize = std::mem::size_of::<usize>();
pub struct MmapVec<T> {
// This must be Option to properly uphold aliasing access safety guarantees
// Look at the `resize` method for more details
mmap: Option<MmapMut>,
file: File,
mmap: Option<MmapMut>,
file: File,
capacity: usize,
phantom: std::marker::PhantomData<T>,
phantom: std::marker::PhantomData<T>,
}

// Public API
Expand Down

0 comments on commit d87d441

Please sign in to comment.