Skip to content

Commit eacb82d

Browse files
authored
fix: replace std::task::ready with futures_util::ready (#37)
1 parent e25557c commit eacb82d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
cargo update
8888
cargo update -p log --precise 0.4.18
8989
90-
- run: cargo check
90+
- run: cargo check --features full
9191

9292
miri:
9393
name: Test with Miri

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pnet_datalink = "0.27.2"
4545
default = []
4646

4747
# Shorthand to enable everything
48-
full = ["client", "server", "http1", "http2", "tcp", "runtime"]
48+
full = ["client", "server", "http1", "http2", "tcp", "auto", "runtime"]
4949

5050
client = ["hyper/client"]
5151
server = ["hyper/server"]

src/server/conn/auto.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
//! Http1 or Http2 connection.
22
3+
use futures_util::ready;
34
use std::future::Future;
45
use std::io::{Error as IoError, ErrorKind, Result as IoResult};
56
use std::marker::PhantomPinned;
67
use std::pin::Pin;
7-
use std::task::{ready, Context, Poll};
8+
use std::task::{Context, Poll};
89
use std::{error::Error as StdError, marker::Unpin, time::Duration};
910

1011
use bytes::Bytes;

0 commit comments

Comments
 (0)