Skip to content

Commit

Permalink
fix: replace std::task::ready with futures_util::ready (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Sep 20, 2023
1 parent e25557c commit eacb82d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
cargo update
cargo update -p log --precise 0.4.18
- run: cargo check
- run: cargo check --features full

miri:
name: Test with Miri
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pnet_datalink = "0.27.2"
default = []

# Shorthand to enable everything
full = ["client", "server", "http1", "http2", "tcp", "runtime"]
full = ["client", "server", "http1", "http2", "tcp", "auto", "runtime"]

client = ["hyper/client"]
server = ["hyper/server"]
Expand Down
3 changes: 2 additions & 1 deletion src/server/conn/auto.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//! Http1 or Http2 connection.
use futures_util::ready;
use std::future::Future;
use std::io::{Error as IoError, ErrorKind, Result as IoResult};
use std::marker::PhantomPinned;
use std::pin::Pin;
use std::task::{ready, Context, Poll};
use std::task::{Context, Poll};
use std::{error::Error as StdError, marker::Unpin, time::Duration};

use bytes::Bytes;
Expand Down

0 comments on commit eacb82d

Please sign in to comment.