Skip to content

Commit e158d7b

Browse files
committed
Avoid error claiming Add(usize) is dead code
Clippy v0.1.78 identifies this as dead code. However, further down in the same file, there is clearly a user: impl Handler<Result, Result> for Add { This might be yet another incarnation of rust-lang/rust#56750 Let's just mark it as intentionally dead-code, even if this is untrue, to make clippy happy again. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f4530e0 commit e158d7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lychee-lib/src/chain/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ mod test {
188188
};
189189
use async_trait::async_trait;
190190

191+
#[allow(dead_code)] // work-around
191192
#[derive(Debug)]
192193
struct Add(usize);
193194

0 commit comments

Comments
 (0)