Skip to content

Commit 6f24395

Browse files
committed
fix: fmt
1 parent 6be477d commit 6f24395

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/api/metrics.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ pub(super) enum MetricsConfig {
3636
impl MetricsConfig {
3737
pub(super) fn new(
3838
config: &'static str,
39-
) -> impl Filter<Extract = (MetricsConfig,), Error = Infallible> + Clone + Send + 'static
40-
{
39+
) -> impl Filter<Extract = (MetricsConfig,), Error = Infallible> + Clone + Send + 'static {
4140
warp::any().map(move || MetricsConfig::Borrowed(config))
4241
}
4342

4443
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 {
4745
warp::filters::path::full().map(MetricsConfig::Owned)
4846
}
4947

@@ -59,10 +57,7 @@ pub(super) fn metrics_wrapper<F>(
5957
filter: F,
6058
) -> impl Filter<Extract = (WarpResponse,), Error = Rejection> + Clone + Send + 'static
6159
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,
6661
{
6762
warp::filters::method::method()
6863
.map(|method| {

0 commit comments

Comments
 (0)