Skip to content

Commit bb2b45b

Browse files
committed
chore: drop pin-utils dependency
1 parent 0f0b6ed commit bb2b45b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ httparse = { version = "1.9", optional = true }
3737
httpdate = { version = "1.0", optional = true }
3838
itoa = { version = "1", optional = true }
3939
pin-project-lite = { version = "0.2.4", optional = true }
40-
pin-utils = { version = "0.1", optional = true } # TODO: replace with std::pin::pin! once MSRV >= 1.68
4140
smallvec = { version = "1.12", features = ["const_generics", "const_new"], optional = true }
4241
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
4342
want = { version = "0.3", optional = true }
@@ -80,7 +79,7 @@ full = [
8079
]
8180

8281
# HTTP versions
83-
http1 = ["dep:atomic-waker", "dep:futures-channel", "dep:futures-core", "dep:httparse", "dep:itoa", "dep:pin-utils"]
82+
http1 = ["dep:atomic-waker", "dep:futures-channel", "dep:futures-core", "dep:httparse", "dep:itoa"]
8483
http2 = ["dep:futures-channel", "dep:futures-core", "dep:h2"]
8584

8685
# Client/Server

src/common/task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ fn noop_waker() -> Waker {
3636
pub(crate) fn now_or_never<F: std::future::Future>(fut: F) -> Option<F::Output> {
3737
let waker = noop_waker();
3838
let mut cx = Context::from_waker(&waker);
39-
// TODO: replace with std::pin::pin! and drop pin-utils once MSRV >= 1.68
40-
pin_utils::pin_mut!(fut);
39+
// TODO: replace with std::pin::pin! once MSRV >= 1.68
40+
tokio::pin!(fut);
4141
match fut.poll(&mut cx) {
4242
Poll::Ready(res) => Some(res),
4343
Poll::Pending => None,

0 commit comments

Comments
 (0)