Repository navigation
Commit cd11e47
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.
On Copilot review's suggestion, suppress "dead_code" warnings rather
than "unused", that might be broader (such as unused variables or
imports inside of body functions).
Signed-off-by: Quentin Monnet <qmo@qmon.net>1 parent a432a17 commit cd11e47
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments