mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 01:18:02 +00:00
Add a string argument to Error::syntax()
This commit is contained in:
@@ -68,7 +68,7 @@ enum Error {
|
||||
}
|
||||
|
||||
impl de::Error for Error {
|
||||
fn syntax() -> Error { Error::SyntaxError }
|
||||
fn syntax(_: &str) -> Error { Error::SyntaxError }
|
||||
|
||||
fn end_of_stream() -> Error { Error::EndOfStreamError }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user