From 9eaa85b9dfc4613709015c11bf42496b1d3c42b0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Aug 2026 14:49:29 +0000 Subject: [PATCH] style(tests): byte-string literal in the stalled-writer probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clippy::byte_char_slices, pre-existing and unrelated to the refactor in the previous commit — split out so that diff stays scoped. Restores a clean `cargo clippy --all-features --all-targets`. --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 64dd639..122a41e 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -1069,7 +1069,7 @@ fn body_smooth_trickle_evicted_at_stall_timeout() { let start = std::time::Instant::now(); let mut evicted = false; for _ in 0..200 { // up to ~20s; eviction expected at ~800ms - if s.write_all(&[b'x']).is_err() { + if s.write_all(b"x").is_err() { evicted = true; // server closed on us -> write failed break; }