Skip to content

Commit

Permalink
Use std::task::ready instead of ready_polyfill::ready
Browse files Browse the repository at this point in the history
The `std::task::ready` macro has been available since Rust 1.64 now.
Our MSRV is 1.70 currently, so we can use it.
  • Loading branch information
leotaku committed Jan 6, 2025
1 parent 98ac675 commit 758eaa6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/inject.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::{future::Future, task::Poll};
use std::{future::Future, task::{ready, Poll}};

use bytes::{Buf, Bytes};
use http::{header, Request, Response};
use http_body::Frame;
use tower::Service;

use crate::{predicate::Predicate, ready_polyfill::ready};
use crate::predicate::Predicate;

#[derive(Clone, Debug)]
pub struct InjectService<S, ReqPred, ResPred> {
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ mod inject;
mod long_poll;
mod overlay;
pub mod predicate;
mod ready_polyfill;

use std::{convert::Infallible, time::Duration};

Expand Down
12 changes: 0 additions & 12 deletions src/ready_polyfill.rs

This file was deleted.

0 comments on commit 758eaa6

Please sign in to comment.