feat(de): Rename de::Error trait methods

This commit is contained in:
Erick Tryzelaar
2016-02-23 19:51:49 -08:00
parent 6caf8a0074
commit 118476b98b
11 changed files with 83 additions and 79 deletions
+2 -8
View File
@@ -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 {