Skip to content
Myr

Clean up unused field warning in test suite

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

warning: field is never read: `drop` --> tests/test_context.rs:27:13 | 27 | drop: DetectDrop, | ^^^^^^^^^^^^^^^^ ... 38 | context_type!(HighLevel); | ------------------------- in this macro invocation | = note: `#[warn(dead_code)]` on by default = note: this warning originates in the macro `context_type` (in Nightly builds, run with -Z macro-backtrace for more info) warning: field is never read: `drop` --> tests/test_context.rs:27:13 | 27 | drop: DetectDrop, | ^^^^^^^^^^^^^^^^ ... 39 | context_type!(MidLevel); | ------------------------ in this macro invocation | = note: this warning originates in the macro `context_type` (in Nightly builds, run with -Z macro-backtrace for more info)

authored by David Tolnay · committed by David Tolnay · parent 81677cb · Browse files · 1 file+1 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+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_context.rs+1 added
22 unmodified lines
23 ($name:ident) => {24 #[derive(Debug)]25 struct $name {26 message: &'static str,27 #[allow(dead_code)]28 drop: DetectDrop,29 }3031 impl Display for $name {
141 unmodified lines