Enable clippy_pedantic in serde_test
This commit is contained in:
parent
f4ae0888c8
commit
16787318d1
@ -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() }
|
||||
}
|
||||
}
|
||||
|
@ -157,8 +157,15 @@
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/serde_test/1.0.18")]
|
||||
|
||||
#![cfg_attr(feature = "cargo-clippy", deny(clippy))]
|
||||
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
|
||||
// Whitelisted clippy lints
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
||||
// Whitelisted clippy_pedantic lints
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(
|
||||
missing_docs_in_private_items,
|
||||
stutter,
|
||||
use_self,
|
||||
))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde;
|
||||
|
Loading…
x
Reference in New Issue
Block a user