Refactor TypedHeader extractor (#189)

I should use `HeaderMapExt::typed_try_get` rather than implementing it
manually.
This commit is contained in:
David Pedersen
2021-08-16 09:05:10 +02:00
committed by GitHub
parent 48afd30491
commit be7e9e9bc6
5 changed files with 107 additions and 78 deletions
+1 -1
View File
@@ -89,7 +89,7 @@
use crate::{
body::BoxBody,
response::IntoResponse,
routing::{future::RouteFuture, EmptyRouter, MethodFilter},
routing::{EmptyRouter, MethodFilter},
};
use bytes::Bytes;
use http::{Request, Response};