Skip to content

Commit 5aabe0c

Browse files
committed
clean up
1 parent 5b88d41 commit 5aabe0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tower-service/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ edition = "2018"
2424
[dependencies]
2525

2626
[dev-dependencies]
27+
http = "0.2"
2728
tower-layer = { version = "0.3", path = "../tower-layer" }
2829
tokio = { version = "1", features = ["macros", "time"] }
2930
futures = "0.3"
30-
http = "0.2"

tower-service/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use std::task::{Context, Poll};
5353
///
5454
/// impl Service<Request<Vec<u8>>> for HelloWorld {
5555
/// type Response = Response<Vec<u8>>;
56-
/// type Error = Box<dyn std::error::Error + Send + Sync>;
56+
/// type Error = http::Error;
5757
/// type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
5858
///
5959
/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {

0 commit comments

Comments
 (0)