replace scoped_pool (#685)

This commit is contained in:
Jacob Brown
2019-11-06 19:26:08 -06:00
committed by Paul Masurel
parent 0519056bd8
commit 6e4fdfd4bf
4 changed files with 28 additions and 17 deletions

View File

@@ -170,3 +170,9 @@ impl From<serde_json::Error> for TantivyError {
TantivyError::IOError(io_err.into())
}
}
impl From<rayon::ThreadPoolBuildError> for TantivyError {
fn from(error: rayon::ThreadPoolBuildError) -> TantivyError {
TantivyError::SystemError(error.to_string())
}
}