Remove unnecessar PhantomData

This commit is contained in:
Yuriy Dupyn 2024-02-04 21:09:46 +01:00
parent 82300039fc
commit b64819f28b
3 changed files with 21 additions and 14 deletions

View file

@ -20,7 +20,6 @@ pub type FilePosition = u64;
#[derive(Debug)]
pub struct Store<T> {
pub header: StoreHeader,
pub data_type: PhantomData<T>,
pub indexes: StoreIndexes<T>,
}
@ -68,7 +67,6 @@ impl <T>Store<T> {
let store = Self {
header,
data_type: PhantomData::<T>,
indexes,
};
@ -171,7 +169,6 @@ impl <T>Store<T> {
let store = Self {
header,
data_type: PhantomData::<T>,
indexes
};
Ok(store)