Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/cachekit/src/reliability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ pub(crate) fn wrap_reliable(
#[cfg(test)]
#[allow(clippy::expect_used)] // test-only: failed acquire/probe should panic loudly
mod tests {
use std::pin::Pin;
use std::pin::{pin, Pin};
use std::task::{Context, Poll, Waker};

use super::*;
Expand Down Expand Up @@ -1250,7 +1250,7 @@ mod tests {
);
// Ready on the first poll is the queue-full shed: every other shed
// path is only reachable after parking.
let third = poll_once(Box::pin(limiter.acquire()).as_mut());
let third = poll_once(pin!(limiter.acquire()));
assert!(
matches!(&third, Poll::Ready(Err(err)) if err.kind == BackendErrorKind::Backpressure),
"queue of 1 is full, so the third caller sheds on its first poll: {third:?}"
Expand Down
Loading