Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion benches/end_to_end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn http1_parallel_x10_res_10mb(b: &mut test::Bencher) {

// HTTP2

const HTTP2_MAX_WINDOW: u32 = std::u32::MAX >> 1;
const HTTP2_MAX_WINDOW: u32 = u32::MAX >> 1;

#[bench]
fn http2_consecutive_x1_empty(b: &mut test::Bencher) {
Expand Down
14 changes: 7 additions & 7 deletions src/client/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ mod tests {
let (mut tx, mut rx) = channel::<Custom, ()>();

// one is allowed to buffer, second is rejected
let _ = tx.try_send(Custom(1)).expect("1 buffered");
tx.try_send(Custom(1)).expect("1 buffered");
tx.try_send(Custom(2)).expect_err("2 not ready");

assert!(PollOnce(&mut rx).await.is_some(), "rx once");
Expand All @@ -458,7 +458,7 @@ mod tests {

assert!(PollOnce(&mut rx).await.is_none(), "rx empty");

let _ = tx.try_send(Custom(2)).expect("2 ready");
tx.try_send(Custom(2)).expect("2 ready");
}

#[cfg(feature = "http2")]
Expand All @@ -467,13 +467,13 @@ mod tests {
let (tx, rx) = channel::<Custom, ()>();
let mut tx = tx.unbound();

let _ = tx.try_send(Custom(1)).unwrap();
let _ = tx.try_send(Custom(2)).unwrap();
let _ = tx.try_send(Custom(3)).unwrap();
tx.try_send(Custom(1)).unwrap();
tx.try_send(Custom(2)).unwrap();
tx.try_send(Custom(3)).unwrap();

drop(rx);

let _ = tx.try_send(Custom(4)).unwrap_err();
tx.try_send(Custom(4)).unwrap_err();
}

#[cfg(feature = "nightly")]
Expand All @@ -487,7 +487,7 @@ mod tests {
let (mut tx, mut rx) = channel::<Request<Incoming>, Response<Incoming>>();

b.iter(move || {
let _ = tx.send(Request::new(Incoming::empty())).unwrap();
tx.send(Request::new(Incoming::empty())).unwrap();
rt.block_on(async {
loop {
let poll_once = PollOnce(&mut rx);
Expand Down
2 changes: 1 addition & 1 deletion src/proto/h1/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ mod tests {
}

let mut max = 8192;
while max < std::usize::MAX {
while max < usize::MAX {
fuzz(max);
max = (max / 2).saturating_mul(3);
}
Expand Down
Loading