File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,12 @@ pub(super) enum MetricsConfig {
36
36
impl MetricsConfig {
37
37
pub ( super ) fn new (
38
38
config : & ' static str ,
39
- ) -> impl Filter < Extract = ( MetricsConfig , ) , Error = Infallible > + Clone + Send + ' static
40
- {
39
+ ) -> impl Filter < Extract = ( MetricsConfig , ) , Error = Infallible > + Clone + Send + ' static {
41
40
warp:: any ( ) . map ( move || MetricsConfig :: Borrowed ( config) )
42
41
}
43
42
44
43
pub ( super ) fn path (
45
- ) -> impl Filter < Extract = ( MetricsConfig , ) , Error = Infallible > + Clone + Send + ' static
46
- {
44
+ ) -> impl Filter < Extract = ( MetricsConfig , ) , Error = Infallible > + Clone + Send + ' static {
47
45
warp:: filters:: path:: full ( ) . map ( MetricsConfig :: Owned )
48
46
}
49
47
@@ -59,10 +57,7 @@ pub(super) fn metrics_wrapper<F>(
59
57
filter : F ,
60
58
) -> impl Filter < Extract = ( WarpResponse , ) , Error = Rejection > + Clone + Send + ' static
61
59
where
62
- F : Filter < Extract = ( WarpResponse , MetricsConfig ) , Error = Rejection >
63
- + Clone
64
- + Send
65
- + ' static ,
60
+ F : Filter < Extract = ( WarpResponse , MetricsConfig ) , Error = Rejection > + Clone + Send + ' static ,
66
61
{
67
62
warp:: filters:: method:: method ( )
68
63
. map ( |method| {
You can’t perform that action at this time.
0 commit comments