mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 21:37:57 +00:00
feat(errors): Switch Error::custom to use Into<String>
This commit is contained in:
@@ -35,7 +35,7 @@ pub enum Error {
|
||||
}
|
||||
|
||||
impl serde::de::Error for Error {
|
||||
fn custom(_: String) -> Error { Error::Syntax }
|
||||
fn custom<T: Into<String>>(_: T) -> Error { Error::Syntax }
|
||||
|
||||
fn end_of_stream() -> Error { Error::EndOfStream }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user