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