diff options
author | Eric Huss <eric@huss.org> | 2019-12-22 09:46:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 09:46:36 -0800 |
commit | 1b8e0d78bd208fc566fc5d627b3c3147e64113b1 (patch) | |
tree | d56c955470b9376fcbf4dcb254e3a1148a2ccdfe /src/ser.rs | |
parent | 60b874308e6792a73cc00517a60bbef60a12e3cc (diff) | |
parent | b9507d859d27d68b954a76202e60c5cf50c5604d (diff) | |
download | milf-rs-1b8e0d78bd208fc566fc5d627b3c3147e64113b1.tar.gz milf-rs-1b8e0d78bd208fc566fc5d627b3c3147e64113b1.zip |
Merge pull request #365 from AnderEnder/remove-deprecated-error-description
Remove deprecated Error::description
Diffstat (limited to 'src/ser.rs')
-rw-r--r-- | src/ser.rs | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -1542,22 +1542,7 @@ impl fmt::Display for Error { } } -impl error::Error for Error { - fn description(&self) -> &str { - match *self { - Error::UnsupportedType => "unsupported Rust type", - Error::KeyNotString => "map key was not a string", - Error::ValueAfterTable => "values must be emitted before tables", - Error::DateInvalid => "a serialized date was invalid", - Error::NumberInvalid => "a serialized number was invalid", - Error::UnsupportedNone => "unsupported None value", - Error::Custom(_) => "custom error", - Error::KeyNewline => unreachable!(), - Error::ArrayMixedType => unreachable!(), - Error::__Nonexhaustive => panic!(), - } - } -} +impl error::Error for Error {} impl ser::Error for Error { fn custom<T: fmt::Display>(msg: T) -> Error { |