Commit ff7d0ad
authored
Fix: move test only helpers, remove unnecessary lint suppressions (#2773)
move test only helpers, remove unnecessary lint suppressions public APIs
# Change Summary
1. Move test only helpers behind `#[cfg(test)]`, removes unnecessary
`#[allow(dead_code)]`
2. Remove unnecessary lint suppressions on public APIs
## What issue does this PR close?
Quick lint fixes for code hygiene
## How are these changes tested?
Verified using `cargo check` and `cargo test`
- `cargo check -p otap-df-channel`
- `cargo check -p otap-df-core-nodes`
- `cargo test -p otap-df-core-nodes -- syslog`
## Are there any user-facing changes?
No1 parent 8811db4 commit ff7d0ad
2 files changed
Lines changed: 24 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
| |||
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
301 | | - | |
302 | 300 | | |
303 | 301 | | |
304 | 302 | | |
| |||
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
342 | | - | |
343 | 340 | | |
344 | 341 | | |
345 | 342 | | |
| |||
Lines changed: 24 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 135 | | |
159 | 136 | | |
160 | 137 | | |
| |||
1021 | 998 | | |
1022 | 999 | | |
1023 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1024 | 1025 | | |
1025 | 1026 | | |
1026 | 1027 | | |
| |||
0 commit comments