Skip to content
Myr

Ignore dead code lint in test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

warning: fields `x` and `y` are never read --> tests/test_ensure.rs:467:13 | 466 | pub struct Point { | ----- fields in this struct 467 | pub x: i32, | ^ 468 | pub y: i32, | ^ | = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default

authored by David Tolnay · committed by David Tolnay · parent b3ceb70 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:tests/test_ensure.rs+2 added
462 unmodified lines
463#[test]464fn test_whitespace() {465 #[derive(Debug)]466 pub struct Point {467 #[allow(dead_code)]468 pub x: i32,469 #[allow(dead_code)]470 pub y: i32,471 }472473 let point = Point { x: 0, y: 0 };
251 unmodified lines