-
Couldn't load subscription status.
- Fork 102
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Currently we are implementing all our errors by hand.
Exemple:
meilisearch-rust/src/errors.rs
Lines 58 to 68 in 6f98caf
| impl From<MeilisearchError> for Error { | |
| fn from(error: MeilisearchError) -> Self { | |
| Self::Meilisearch(error) | |
| } | |
| } | |
| impl From<jsonwebtoken::errors::Error> for Error { | |
| fn from(error: jsonwebtoken::errors::Error) -> Error { | |
| Error::InvalidTenantToken(error) | |
| } | |
| } |
This would be way more simple using the thiserror library.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers