mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-12 02:37:06 +00:00
Add a string argument to Error::syntax()
This commit is contained in:
1 parent
2aeb51ad51
commit
7fb2bd50bf
13 files changed
+51
-45
No files matched your search
@@ -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