From a1a1d41403d85737589b42e3d8194d6f320c9507 Mon Sep 17 00:00:00 2001
From: Dmitry <b4tm4n@mail.ru>
Date: Tue, 8 Aug 2023 14:25:01 +0300
Subject: [PATCH] replace PhantomData in async_db::Writer

for Send for Writer
---
 lib/src/async_db.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/src/async_db.rs b/lib/src/async_db.rs
index d5f6801..3bd57d9 100644
--- a/lib/src/async_db.rs
+++ b/lib/src/async_db.rs
@@ -1,4 +1,4 @@
-use std::{marker::PhantomData, path::Path, sync::Arc};
+use std::{path::Path, sync::Arc};
 
 use async_compression::tokio::bufread::ZstdDecoder;
 use async_compression::tokio::write::ZstdEncoder;
@@ -48,7 +48,7 @@ where
     data_buf: Vec<u8>,
     table: Vec<LSize>,
     compress_lvl: Level,
-    _t: PhantomData<*const T>,
+    _t: Option<Arc<T>>, // PhantomData replacement
 }
 
 impl<T> Writer<T>
@@ -69,7 +69,7 @@ where
             data_buf,
             table,
             compress_lvl,
-            _t: PhantomData,
+            _t: None,
         })
     }