Commit b552a1e
style: fix clippy warnings and improve code quality
Code Quality Fixes:
- Remove unused Phase 7 benchmark placeholder functions (dead_code)
- benches/transfer.rs: Converted 4 benchmark functions to comments
- Functions preserved in phase-7-hardening.md Section 7.3.4 for future implementation
- Removed: bench_transfer_throughput, bench_transfer_latency, bench_bbr_utilization, bench_multi_peer_speedup
- Use Duration::abs_diff() instead of manual pattern (congestion.rs)
- Replaced if/else absolute difference with idiomatic abs_diff()
- Cleaner, more readable code with same semantics
- Use RangeInclusive::contains() instead of manual checks (timing.rs)
- Replaced 3 instances of 'x >= min && x <= max' with '(min..=max).contains(&x)'
- More idiomatic Rust range validation
- Fix empty doc comment in integration tests
- Changed '//!' to '//' for non-documentation comment
Documentation:
- Add Phase 7.3.4 End-to-End Benchmarks section (13 SP)
- Document removed benchmarks for future implementation
- Update Phase 7 story points: 145 SP → 158 SP
- Comprehensive benchmark specifications for Phase 7
- Update CHANGELOG.md with detailed code quality improvements
- Technical details on all clippy warning resolutions
- Phase 7 planning updates
Quality Gates:
- cargo clippy --workspace -- -D warnings: PASS (0 warnings)
- cargo fmt --all: PASS (clean)
- cargo test --workspace: PASS (911 tests passing)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4a40c46 commit b552a1e
File tree
6 files changed
+328
-63
lines changed- benches
- crates
- wraith-core/src
- wraith-obfuscation/src
- tests
- to-dos/protocol
6 files changed
+328
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
220 | 234 | | |
221 | 235 | | |
222 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
202 | 155 | | |
203 | 156 | | |
204 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
| 1301 | + | |
1306 | 1302 | | |
1307 | 1303 | | |
1308 | 1304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments