Skip to content

Commit 07eef01

Browse files
committed
Stop dead code warnings for explicit trait testing
1 parent c24e7a6 commit 07eef01

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/field_info/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ bitflags! {
2626
}
2727

2828
#[cfg(test)]
29+
#[allow(dead_code)]
2930
trait TraitTester:
3031
Copy + Clone + PartialEq + Eq + PartialOrd + Ord + ::std::hash::Hash + ::std::fmt::Debug
3132
{

src/method_info/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ bitflags! {
2828
}
2929

3030
#[cfg(test)]
31+
#[allow(dead_code)]
3132
trait TraitTester:
3233
Copy + Clone + PartialEq + Eq + PartialOrd + Ord + ::std::hash::Hash + ::std::fmt::Debug
3334
{

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bitflags! {
3737
}
3838

3939
#[cfg(test)]
40+
#[allow(dead_code)]
4041
trait TraitTester:
4142
Copy + Clone + PartialEq + Eq + PartialOrd + Ord + ::std::hash::Hash + ::std::fmt::Debug
4243
{

0 commit comments

Comments
 (0)