@@ -5,7 +5,7 @@ use warp::Filter;
5
5
6
6
pub fn routes (
7
7
dependency_manager : Arc < DependencyManager > ,
8
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
8
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
9
9
snapshots ( dependency_manager. clone ( ) )
10
10
. or ( serve_snapshots_dir ( dependency_manager. clone ( ) ) )
11
11
. or ( snapshot_download ( dependency_manager. clone ( ) ) )
@@ -15,7 +15,7 @@ pub fn routes(
15
15
/// GET /snapshots
16
16
fn snapshots (
17
17
dependency_manager : Arc < DependencyManager > ,
18
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
18
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
19
19
warp:: path!( "snapshots" )
20
20
. and ( warp:: get ( ) )
21
21
. and ( middlewares:: with_snapshot_store ( dependency_manager) )
@@ -25,7 +25,7 @@ fn snapshots(
25
25
/// GET /snapshots/{digest}/download
26
26
fn snapshot_download (
27
27
dependency_manager : Arc < DependencyManager > ,
28
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
28
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
29
29
warp:: path!( "snapshot" / String / "download" )
30
30
. and ( warp:: get ( ) )
31
31
. and ( middlewares:: with_config ( dependency_manager. clone ( ) ) )
@@ -35,7 +35,7 @@ fn snapshot_download(
35
35
36
36
fn serve_snapshots_dir (
37
37
dependency_manager : Arc < DependencyManager > ,
38
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
38
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
39
39
let config = dependency_manager. config . clone ( ) ;
40
40
41
41
warp:: path ( "snapshot_download" )
@@ -47,7 +47,7 @@ fn serve_snapshots_dir(
47
47
/// GET /snapshot/digest
48
48
fn snapshot_digest (
49
49
dependency_manager : Arc < DependencyManager > ,
50
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
50
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
51
51
warp:: path!( "snapshot" / String )
52
52
. and ( warp:: get ( ) )
53
53
. and ( middlewares:: with_snapshot_store ( dependency_manager) )
@@ -182,7 +182,7 @@ mod tests {
182
182
183
183
fn setup_router (
184
184
dependency_manager : Arc < DependencyManager > ,
185
- ) -> impl Filter < Extract = impl warp:: Reply , Error = warp:: Rejection > + Clone {
185
+ ) -> impl Filter < Extract = ( impl warp:: Reply , ) , Error = warp:: Rejection > + Clone {
186
186
let cors = warp:: cors ( )
187
187
. allow_any_origin ( )
188
188
. allow_headers ( vec ! [ "content-type" ] )
0 commit comments