From 3b33484cf8a3da91c1d7d01bc407b6e8d79b8ccb Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Sun, 7 May 2017 14:19:38 +0900 Subject: [PATCH] compatibility with tantivy-imhotep --- src/fastfield/reader.rs | 6 ++++++ src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fastfield/reader.rs b/src/fastfield/reader.rs index 23229184c..897c7b889 100644 --- a/src/fastfield/reader.rs +++ b/src/fastfield/reader.rs @@ -46,6 +46,9 @@ pub struct U64FastFieldReader { max_value: u64, } +unsafe impl Send for U64FastFieldReader {} +unsafe impl Sync for U64FastFieldReader {} + impl U64FastFieldReader { /// Returns the minimum value for this fast field. @@ -140,6 +143,9 @@ pub struct I64FastFieldReader { underlying: U64FastFieldReader, } +unsafe impl Send for I64FastFieldReader {} +unsafe impl Sync for I64FastFieldReader {} + impl I64FastFieldReader { /// Returns the minimum value for this fast field. /// diff --git a/src/lib.rs b/src/lib.rs index c11397465..c75705bd6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,7 +97,7 @@ mod indexer; mod common; mod error; mod analyzer; -mod datastruct; +pub mod datastruct;