PhantomData<Arc<T>> for Send to Reader/Writer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1e8cd4b461
commit
b12048c38d
@ -54,7 +54,7 @@ where
|
|||||||
cur_buf_raw: Cursor<Vec<u8>>,
|
cur_buf_raw: Cursor<Vec<u8>>,
|
||||||
table: Vec<LSize>,
|
table: Vec<LSize>,
|
||||||
compress_lvl: i32,
|
compress_lvl: i32,
|
||||||
_t: PhantomData<*const T>,
|
_t: PhantomData<Arc<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Writer<T>
|
impl<T> Writer<T>
|
||||||
@ -158,7 +158,7 @@ where
|
|||||||
mmap: Mmap,
|
mmap: Mmap,
|
||||||
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>
|
||||||
@ -179,7 +179,7 @@ where
|
|||||||
mmap,
|
mmap,
|
||||||
count,
|
count,
|
||||||
first_pos,
|
first_pos,
|
||||||
_t: None,
|
_t: PhantomData,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user