PhantomData<Arc<T>> for Send to Reader/Writer
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dmitry Belyaev 2023-08-10 11:48:34 +03:00
parent 1e8cd4b461
commit b12048c38d
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ where
cur_buf_raw: Cursor<Vec<u8>>,
table: Vec<LSize>,
compress_lvl: i32,
_t: PhantomData<*const T>,
_t: PhantomData<Arc<T>>,
}
impl<T> Writer<T>
@ -158,7 +158,7 @@ where
mmap: Mmap,
count: usize,
first_pos: LSize,
_t: Option<Arc<T>>, // PhantomData replacement
_t: PhantomData<Arc<T>>,
}
impl<T> Reader<T>
@ -179,7 +179,7 @@ where
mmap,
count,
first_pos,
_t: None,
_t: PhantomData,
})
}