Ignore clippy false positive

This commit is contained in:
David Tolnay 2017-04-11 11:04:56 -07:00
parent e0b45792e8
commit f5094829a8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1944,6 +1944,8 @@ fn test_category() {
}
#[test]
// Clippy false positive: https://github.com/Manishearth/rust-clippy/issues/292
#[cfg_attr(feature = "cargo-clippy", allow(needless_lifetimes))]
fn test_into_io_error() {
fn io_error<'de, T: Deserialize<'de> + Debug>(j: &'static str) -> io::Error {
from_str::<T>(j).unwrap_err().into()