Skip to content

Commit 93caf1a

Browse files
committed
Resolve dead_code warning in test
warning: enum `DeprecatedFrom` is never used --> tests/test_lints.rs:79:14 | 79 | pub enum DeprecatedFrom { | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
1 parent 54562ac commit 93caf1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_lints.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,6 @@ fn test_deprecated() {
9393
let _ = DeprecatedEnum::Variant;
9494
#[allow(deprecated)]
9595
let _ = DeprecatedVariant::Variant;
96+
#[allow(deprecated)]
97+
let _ = DeprecatedFrom::Variant(DeprecatedStruct);
9698
}

0 commit comments

Comments
 (0)