mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
remove anyhow refs & implement missing errors
This commit is contained in:
parent
c1b6f0e833
commit
58f9974be4
40 changed files with 707 additions and 668 deletions
|
@ -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<_>>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue