diff --git a/README.md b/README.md
index 1353c57..073ecf4 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,6 @@ use hyper::server::conn::AddrStream;
use hyper::{Body, Request, Response, Server, StatusCode};
use hyper::service::{service_fn, make_service_fn};
use std::{convert::Infallible, net::SocketAddr};
-use hyper::http::uri::InvalidUri;
use std::net::IpAddr;
fn debug_request(req: Request
) -> Result, Infallible> {
@@ -56,7 +55,7 @@ async fn handle(client_ip: IpAddr, req: Request) -> Result,
// will forward requests to port 13901
match hyper_reverse_proxy::call(client_ip, "http://127.0.0.1:13901", req).await {
Ok(response) => {Ok(response)}
- Err(error) => {Ok(Response::builder()
+ Err(_error) => {Ok(Response::builder()
.status(StatusCode::INTERNAL_SERVER_ERROR)
.body(Body::empty())
.unwrap())}
diff --git a/src/lib.rs b/src/lib.rs
index e6c0ec2..cb42b0b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -36,7 +36,6 @@
//! use hyper::{Body, Request, Response, Server, StatusCode};
//! use hyper::service::{service_fn, make_service_fn};
//! use std::{convert::Infallible, net::SocketAddr};
-//! use hyper::http::uri::InvalidUri;
//! use std::net::IpAddr;
//!
//! fn debug_request(req: Request) -> Result, Infallible> {
@@ -49,7 +48,7 @@
//! // will forward requests to port 13901
//! match hyper_reverse_proxy::call(client_ip, "http://127.0.0.1:13901", req).await {
//! Ok(response) => {Ok(response)}
-//! Err(error) => {Ok(Response::builder()
+//! Err(_error) => {Ok(Response::builder()
//! .status(StatusCode::INTERNAL_SERVER_ERROR)
//! .body(Body::empty())
//! .unwrap())}