Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace std::task::ready with futures_util::ready #37

Merged
merged 1 commit into from
Sep 20, 2023
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 .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