mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Introduce a new bincode internal error
This commit is contained in:
parent
fe5d50969a
commit
7cb8732b45
2 changed files with 3 additions and 2 deletions
|
@ -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)? };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue