mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix crashes in facet search indexing
This commit is contained in:
parent
7864530589
commit
1f5d801271
3 changed files with 8 additions and 22 deletions
|
@ -28,7 +28,6 @@ impl From<u8> for FacetKind {
|
|||
|
||||
impl FacetKind {
|
||||
pub fn extract_from_key(key: &[u8]) -> (FacetKind, &[u8]) {
|
||||
debug_assert!(key.len() > 3);
|
||||
(FacetKind::from(key[0]), &key[1..])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue