mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Introduce a new bincode internal error
This commit is contained in:
@ -48,8 +48,7 @@ where
|
||||
}
|
||||
|
||||
let mut file = tempfile::tempfile()?;
|
||||
/// manage error
|
||||
bincode::serialize_into(&mut file, &rtree).unwrap();
|
||||
bincode::serialize_into(&mut file, &rtree).map_err(InternalError::BincodeError)?;
|
||||
file.sync_all()?;
|
||||
|
||||
let rtree_mmap = unsafe { Mmap::map(&file)? };
|
||||
|
Reference in New Issue
Block a user