mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
feat: Introduce typed keys constructors
This commit is contained in:
@ -23,7 +23,8 @@ impl DocIds {
|
||||
Ok(DocIds { doc_ids })
|
||||
}
|
||||
|
||||
pub fn from_bytes(vec: Vec<u8>) -> io::Result<Self> {
|
||||
pub fn from_bytes(vec: Vec<u8>) -> Result<Self, Box<Error>> {
|
||||
// FIXME check if modulo DocumentId
|
||||
let len = vec.len();
|
||||
let doc_ids = Data::Shared {
|
||||
vec: Arc::new(vec),
|
||||
|
Reference in New Issue
Block a user