Skip to content

Commit a686d6f

Browse files
committed
Apply Clippy suggestions
1 parent c44c94f commit a686d6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,7 +2987,7 @@ mod tests {
29872987
}
29882988
}
29892989

2990-
const MAX_CONCURRENT_TESTS: LazyLock<usize> = LazyLock::new(|| {
2990+
static MAX_CONCURRENT_TESTS: LazyLock<usize> = LazyLock::new(|| {
29912991
env::var("TESTS_MAX_CONCURRENCY")
29922992
.ok()
29932993
.and_then(|v| v.parse().ok())
@@ -3539,7 +3539,7 @@ mod tests {
35393539
.await
35403540
.unwrap();
35413541

3542-
assert!(response.success, "stderr: {}", stderr);
3542+
assert!(response.success, "stderr: {stderr}");
35433543
assert_contains!(stderr, "Compiling");
35443544
assert_contains!(stderr, "Finished");
35453545

compiler/base/orchestrator/src/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ mod test {
11721172
let next_result = this.0.pop_front().expect("FixedAsyncRead ran out of input");
11731173

11741174
if let Ok(v) = &next_result {
1175-
buf.put_slice(&v);
1175+
buf.put_slice(v);
11761176
}
11771177

11781178
Poll::Ready(next_result.map(drop))

0 commit comments

Comments
 (0)