Skip to content

Commit 0f2338f

Browse files
committed
Fix dead code warnings in tests
rust-lang/rust#118257 has improved the detection of unused traits
1 parent 033a870 commit 0f2338f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/throws.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ pub fn unreachable() {
144144
todo!()
145145
}
146146

147+
#[allow(dead_code)]
147148
trait Example {
148149
#[throws]
149150
fn foo() -> i32;

tests/try.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ pub fn unreachable() -> Result<(), i32> {
141141
todo!()
142142
}
143143

144+
#[allow(dead_code)]
144145
trait Example {
145146
#[try_fn]
146147
fn foo() -> Result<i32, Error>;

0 commit comments

Comments
 (0)