Skip to content

Commit 557fa3c

Browse files
committed
test(nat): Remove warning for shuttle tests
We have a warning when building the shuttle tests for nat: $ cargo check --features shuttle --all-targets -p dataplane-nat [...] warning: function `vpcd1` is never used --> nat/src/masquerade/apalloc/test_alloc.rs:43:12 | 43 | pub fn vpcd1() -> VpcDiscriminant { | ^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default It's not blocking, but let's suppress it anyway. Signed-off-by: Quentin Monnet <qmo@qmon.net>
1 parent 1df065b commit 557fa3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎nat/src/masquerade/apalloc/test_alloc.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ mod context {
4040
pub fn vni2() -> Vni {
4141
Vni::new_checked(200).unwrap()
4242
}
43+
#[allow(unused)]
4344
pub fn vpcd1() -> VpcDiscriminant {
4445
VpcDiscriminant::from_vni(vni1())
4546
}

0 commit comments

Comments
 (0)