diff options
author | HampusM <hampus@hampusmat.com> | 2023-05-14 19:03:55 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-05-14 19:03:55 +0200 |
commit | f91a47ff6bb03a99ca4c82672ba95aa8729beeb4 (patch) | |
tree | f5b8b9f1e61f2d216185777f26fc903a884a8e4e | |
parent | 2a3bc2d9e7174d0b5f809b2ff5e02f3ae41dabb5 (diff) |
docs: rename error variants in the simple example
-rw-r--r-- | examples/simple.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple.rs b/examples/simple.rs index 563530c..3edcf5d 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -78,7 +78,7 @@ enum DataError InvalidFavorites(#[from] FavoritesError), #[error(transparent)] - DeserializeFailed(#[from] DeserializerError<Infallible>), + DeserializerFailed(#[from] DeserializerError<Infallible>), } impl_from_deserializer_error!(DataError); @@ -117,7 +117,7 @@ impl DeserializeTagged for Favorites enum FavoritesError { #[error(transparent)] - DeserializeFailed(#[from] DeserializerError<Infallible>), + DeserializerFailed(#[from] DeserializerError<Infallible>), } impl_from_deserializer_error!(FavoritesError); |