This commit is contained in:
parent
48438c1aec
commit
68b276ce5e
@ -1,3 +1,4 @@
|
|||||||
|
use std::marker::PhantomData;
|
||||||
use std::{path::Path, sync::Arc};
|
use std::{path::Path, sync::Arc};
|
||||||
|
|
||||||
use async_compression::tokio::bufread::ZstdDecoder;
|
use async_compression::tokio::bufread::ZstdDecoder;
|
||||||
@ -48,7 +49,7 @@ where
|
|||||||
data_buf: Vec<u8>,
|
data_buf: Vec<u8>,
|
||||||
table: Vec<LSize>,
|
table: Vec<LSize>,
|
||||||
compress_lvl: Level,
|
compress_lvl: Level,
|
||||||
_t: Option<Arc<T>>, // PhantomData replacement
|
_t: PhantomData<Arc<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Writer<T>
|
impl<T> Writer<T>
|
||||||
@ -69,7 +70,7 @@ where
|
|||||||
data_buf,
|
data_buf,
|
||||||
table,
|
table,
|
||||||
compress_lvl,
|
compress_lvl,
|
||||||
_t: None,
|
_t: PhantomData,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +133,7 @@ where
|
|||||||
mmap: AsyncMmapFile,
|
mmap: AsyncMmapFile,
|
||||||
count: usize,
|
count: usize,
|
||||||
first_pos: LSize,
|
first_pos: LSize,
|
||||||
_t: Option<Arc<T>>, // PhantomData replacement
|
_t: PhantomData<Arc<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Reader<T>
|
impl<T> Reader<T>
|
||||||
@ -157,7 +158,7 @@ where
|
|||||||
mmap,
|
mmap,
|
||||||
count,
|
count,
|
||||||
first_pos,
|
first_pos,
|
||||||
_t: None,
|
_t: PhantomData,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user