summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorSam Scott <sam@osohq.com>2020-12-17 21:52:05 -0500
committerSam Scott <sam@osohq.com>2020-12-17 21:52:05 -0500
commitb3e75c6a446ccd32651538566dc457bf276f6649 (patch)
tree7180c5201130865a9b7316eef8218cfca6cc1f64 /src/error.rs
parent78ab95911e478ffef3d36e8cbb5402e92b5d16f0 (diff)
Set MSRV to 1.36 and test.
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs
index b7c2042..e303abf 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -41,7 +41,7 @@ pub enum Error {
impl Error {
/// Generate error to show top-level type cannot be deserialized.
pub fn top_level(object: &'static str) -> Self {
- Self::Custom(format!(
+ Error::Custom(format!(
"cannot deserialize {} at the top level.\
Try deserializing into a struct.",
object
@@ -53,7 +53,7 @@ impl Error {
where
T: Display,
{
- Self::Parse(msg.to_string(), position)
+ Error::Parse(msg.to_string(), position)
}
}
@@ -62,7 +62,7 @@ impl de::Error for Error {
where
T: Display,
{
- Self::Custom(msg.to_string())
+ Error::Custom(msg.to_string())
}
}