remove anyhow refs & implement missing errors

This commit is contained in:
marin postma 2021-06-14 21:26:35 +02:00
parent c1b6f0e833
commit 58f9974be4
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
40 changed files with 707 additions and 668 deletions

View file

@ -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<_>>());