mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 16:08:05 +00:00
Flesh out error handling
This commit is contained in:
+11
-1
@@ -236,7 +236,7 @@ mod deserializer {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn syntax_error(&self, _token: de::Token) -> Error {
|
||||
fn syntax_error(&self, _token: de::Token, _expected: &[de::TokenKind]) -> Error {
|
||||
SyntaxError
|
||||
}
|
||||
|
||||
@@ -244,6 +244,16 @@ mod deserializer {
|
||||
fn missing_field_error(&self, _field: &'static str) -> Error {
|
||||
SyntaxError
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn unexpected_name_error(&self, _token: de::Token) -> Error {
|
||||
SyntaxError
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn conversion_error(&self, _token: de::Token) -> Error {
|
||||
SyntaxError
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user