mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
remove anyhow refs & implement missing errors
This commit is contained in:
@ -31,9 +31,9 @@ pub struct SearchQueryGet {
|
||||
}
|
||||
|
||||
impl TryFrom<SearchQueryGet> for SearchQuery {
|
||||
type Error = anyhow::Error;
|
||||
type Error = Box<dyn std::error::Error>;
|
||||
|
||||
fn try_from(other: SearchQueryGet) -> anyhow::Result<Self> {
|
||||
fn try_from(other: SearchQueryGet) -> Result<Self, Self::Error> {
|
||||
let attributes_to_retrieve = other
|
||||
.attributes_to_retrieve
|
||||
.map(|attrs| attrs.split(',').map(String::from).collect::<BTreeSet<_>>());
|
||||
|
Reference in New Issue
Block a user