Making u32fastfield send/sync

This commit is contained in:
Paul Masurel
2017-02-23 20:11:35 +09:00
parent 673712a339
commit 391f258ff3

View File

@@ -101,6 +101,9 @@ pub struct U32FastFieldsReader {
field_offsets: HashMap<Field, (u32, u32)>,
}
unsafe impl Send for U32FastFieldsReader {}
unsafe impl Sync for U32FastFieldsReader {}
impl U32FastFieldsReader {
pub fn open(source: ReadOnlySource) -> io::Result<U32FastFieldsReader> {
let header_offset;