Add a string argument to Error::syntax()

This commit is contained in:
Erick Tryzelaar
2015-08-07 08:08:56 -07:00
parent 2aeb51ad51
commit 7fb2bd50bf
13 changed files with 51 additions and 45 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use serde_json;
struct Error;
impl serde::de::Error for Error {
fn syntax() -> Error { Error }
fn syntax(_: &str) -> Error { Error }
fn end_of_stream() -> Error { Error }