mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 17:18:08 +00:00
feat(de): Rename de::Error trait methods
This commit is contained in:
@@ -10,19 +10,13 @@ use serde::bytes::{ByteBuf, Bytes};
|
||||
struct Error;
|
||||
|
||||
impl serde::ser::Error for Error {
|
||||
fn syntax(_: &str) -> Error { Error }
|
||||
|
||||
fn invalid_value(_field: &str) -> Error { Error }
|
||||
fn custom(_: String) -> Error { Error }
|
||||
}
|
||||
|
||||
impl serde::de::Error for Error {
|
||||
fn syntax(_: &str) -> Error { Error }
|
||||
fn custom(_: String) -> Error { Error }
|
||||
|
||||
fn end_of_stream() -> Error { Error }
|
||||
|
||||
fn unknown_field(_field: &str) -> Error { Error }
|
||||
|
||||
fn missing_field(_field: &'static str) -> Error { Error }
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
|
||||
Reference in New Issue
Block a user