From c0f93432cc67d2ac00b081b2f06f4f5e7374955b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 30 Apr 2022 20:19:45 -0700 Subject: [PATCH] Ignore trait_duplication_in_bounds clippy false positives https://github.com/rust-lang/rust-clippy/issues/8757 error: this trait bound is already specified in the where clause --> tests/regression/issue845.rs:13:8 | 13 | T: TryFrom + TryFrom + FromStr, | ^^^^^^^^^^^^ | = note: `-D clippy::trait-duplication-in-bounds` implied by `-D clippy::pedantic` = help: consider removing this trait bound = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds error: this trait bound is already specified in the where clause --> tests/regression/issue845.rs:14:33 | 14 | >::Error: Display, | ^^^^^^^ | = help: consider removing this trait bound = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds error: this trait bound is already specified in the where clause --> tests/regression/issue845.rs:49:8 | 49 | T: TryFrom + TryFrom + FromStr, | ^^^^^^^^^^^^ | = help: consider removing this trait bound = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds error: this trait bound is already specified in the where clause --> tests/regression/issue845.rs:50:33 | 50 | >::Error: Display, | ^^^^^^^ | = help: consider removing this trait bound = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds --- tests/regression/issue845.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regression/issue845.rs b/tests/regression/issue845.rs index dcca55694..56037ae66 100644 --- a/tests/regression/issue845.rs +++ b/tests/regression/issue845.rs @@ -1,3 +1,5 @@ +#![allow(clippy::trait_duplication_in_bounds)] // https://github.com/rust-lang/rust-clippy/issues/8757 + use serde::{Deserialize, Deserializer}; use std::convert::TryFrom; use std::fmt::{self, Display};