apply code suggestion

Co-authored-by: Kerollmops <kero@meilisearch.com>
This commit is contained in:
Tamo 2022-05-04 14:11:03 +02:00
parent 3cb1f6d0a1
commit c55368ddd4
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 22 additions and 16 deletions

View file

@ -97,6 +97,12 @@ impl From<fst::Error> for Error {
}
}
impl From<GeoError> for Error {
fn from(error: GeoError) -> Error {
Error::UserError(UserError::InvalidGeoField(error))
}
}
impl<E> From<grenad::Error<E>> for Error
where
Error: From<E>,