meilisearch/meilisearch-rust

Why does `attributes_to_crop` has a different prototype than `attributes_to_highlight`

Opened this issue · 0 comments

attributes_to_crop and attributes_to_highlight have the same type as per the documentation

pub attributes_to_crop: Option<Selectors<&'a [AttributeToCrop<'a>]>>,

and here

pub attributes_to_highlight: Option<Selectors<&'a [&'a str]>>,

I was wondering if there was another reason why these two attributes have different types?