mirror of
https://github.com/serde-rs/json.git
synced 2026-01-20 07:35:50 +00:00
Remove extremely old error conversion
This commit is contained in:
parent
e05a8fa752
commit
ceff320ddb
14
src/error.rs
14
src/error.rs
@ -383,20 +383,6 @@ impl From<io::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<de::value::Error> for Error {
|
||||
fn from(error: de::value::Error) -> Error {
|
||||
Error {
|
||||
err: Box::new(
|
||||
ErrorImpl {
|
||||
code: ErrorCode::Message(error.to_string()),
|
||||
line: 0,
|
||||
column: 0,
|
||||
},
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl de::Error for Error {
|
||||
fn custom<T: Display>(msg: T) -> Error {
|
||||
Error {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user