Enable clippy_pedantic in serde_test

This commit is contained in:
David Tolnay
2017-11-06 22:31:35 -08:00
parent f4ae0888c8
commit 16787318d1
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -17,13 +17,13 @@ pub struct Error {
}
impl ser::Error for Error {
fn custom<T: Display>(msg: T) -> Error {
fn custom<T: Display>(msg: T) -> Self {
Error { msg: msg.to_string() }
}
}
impl de::Error for Error {
fn custom<T: Display>(msg: T) -> Error {
fn custom<T: Display>(msg: T) -> Self {
Error { msg: msg.to_string() }
}
}