aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-05-14 19:03:55 +0200
committerHampusM <hampus@hampusmat.com>2023-05-14 19:03:55 +0200
commitf91a47ff6bb03a99ca4c82672ba95aa8729beeb4 (patch)
treef5b8b9f1e61f2d216185777f26fc903a884a8e4e
parent2a3bc2d9e7174d0b5f809b2ff5e02f3ae41dabb5 (diff)
docs: rename error variants in the simple example
-rw-r--r--examples/simple.rs4
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);