Skip to content

Commit 4398436

Browse files
committed
style(adaptive-speculative): fix clippy warnings in integration tests
1 parent df34539 commit 4398436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/core/tests/adaptive_speculative.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn test_adaptive_speculative_basic() {
4747
// Run a few steps
4848
for _ in 0..5 {
4949
let results = engine.step_adaptive_speculative().unwrap();
50-
for (_, token) in results {
50+
for (_, _token) in results {
5151
let _ = rx.try_recv();
5252
}
5353
}
@@ -71,7 +71,7 @@ fn test_adaptive_speculative_adjusts_draft_count() {
7171
cooldown_steps: 2,
7272
});
7373

74-
let initial_max = engine
74+
let _initial_max = engine
7575
.adaptive_decoder
7676
.as_ref()
7777
.unwrap()
@@ -92,5 +92,5 @@ fn test_adaptive_speculative_adjusts_draft_count() {
9292
.as_ref()
9393
.unwrap()
9494
.current_max_draft_tokens();
95-
assert!(final_max >= 2 && final_max <= 6);
95+
assert!((2..=6).contains(&final_max));
9696
}

0 commit comments

Comments
 (0)