Skip to content

Commit

Permalink
refactor use of futures-util crate (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Apr 13, 2024
1 parent c4eb0bb commit fa2f66e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2021"
base64 = "0.22.0"
byteorder = "1.5.0"
bytes = "1.5.0"
futures-util = "0.3.30"
futures-util = { version = "0.3.30", default-features = false }
http = "0.2.11"
http-body = "0.4.6"
httparse = "1.8.0"
Expand Down
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 fa2f66e

Please sign in to comment.