From 68b276ce5e6e7e238a7ef7481543de5c0f778512 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 10 Aug 2023 11:20:38 +0300 Subject: [PATCH] PhantomData> --- lib/src/async_db.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/src/async_db.rs b/lib/src/async_db.rs index e363814..0a2619d 100644 --- a/lib/src/async_db.rs +++ b/lib/src/async_db.rs @@ -1,3 +1,4 @@ +use std::marker::PhantomData; use std::{path::Path, sync::Arc}; use async_compression::tokio::bufread::ZstdDecoder; @@ -48,7 +49,7 @@ where data_buf: Vec, table: Vec, compress_lvl: Level, - _t: Option>, // PhantomData replacement + _t: PhantomData>, } impl Writer @@ -69,7 +70,7 @@ where data_buf, table, compress_lvl, - _t: None, + _t: PhantomData, }) } @@ -132,7 +133,7 @@ where mmap: AsyncMmapFile, count: usize, first_pos: LSize, - _t: Option>, // PhantomData replacement + _t: PhantomData>, } impl Reader @@ -157,7 +158,7 @@ where mmap, count, first_pos, - _t: None, + _t: PhantomData, }) }