Skip to content

Commit

Permalink
Use standard library Future and ready
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Apr 12, 2024
1 parent 72d0a0a commit a6405a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::{
future::Future,
pin::Pin,
task::{Context, Poll},
};

use futures_util::Future;
use http::{Request, Response};
use tonic::body::BoxBody;
use tower_service::Service;
Expand Down
3 changes: 1 addition & 2 deletions src/response_body.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use std::{
ops::{Deref, DerefMut},
pin::Pin,
task::{Context, Poll},
task::{ready, Context, Poll},
};

use base64::{prelude::BASE64_STANDARD, Engine};
use byteorder::{BigEndian, ByteOrder};
use bytes::{BufMut, Bytes, BytesMut};
use futures_util::ready;
use http::{header::HeaderName, HeaderMap, HeaderValue};
use http_body::Body;
use httparse::{Status, EMPTY_HEADER};
Expand Down

0 comments on commit a6405a4

Please sign in to comment.