Skip to content

Commit c0f9343

Browse files
committed
Ignore trait_duplication_in_bounds clippy false positives
rust-lang/rust-clippy#8757 error: this trait bound is already specified in the where clause --> tests/regression/issue845.rs:13:8 | 13 | T: TryFrom<u64> + TryFrom<i64> + 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 | <T as TryFrom<u64>>::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<u64> + TryFrom<i64> + 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 | <T as TryFrom<u64>>::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
1 parent 048a64c commit c0f9343

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/regression/issue845.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::trait_duplication_in_bounds)] // https://github.com/rust-lang/rust-clippy/issues/8757
2+
13
use serde::{Deserialize, Deserializer};
24
use std::convert::TryFrom;
35
use std::fmt::{self, Display};

0 commit comments

Comments
 (0)