File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use crate::auth::AuthCheck;
6
6
use crate :: controllers:: helpers:: authorization:: Rights ;
7
7
use crate :: util:: errors:: { AppResult , custom, server_error} ;
8
8
use crate :: worker:: jobs;
9
- use axum:: response:: { IntoResponse as _, Response } ;
10
9
use crates_io_worker:: BackgroundJob as _;
11
10
use http:: StatusCode ;
12
11
use http:: request:: Parts ;
@@ -26,7 +25,7 @@ pub async fn rebuild_version_docs(
26
25
app : AppState ,
27
26
path : CrateVersionPath ,
28
27
req : Parts ,
29
- ) -> AppResult < Response > {
28
+ ) -> AppResult < StatusCode > {
30
29
let mut conn = app. db_write ( ) . await ?;
31
30
let auth = AuthCheck :: only_cookie ( ) . check ( & req, & mut conn) . await ?;
32
31
@@ -54,7 +53,7 @@ pub async fn rebuild_version_docs(
54
53
server_error ( "failed to enqueue background job" )
55
54
} ) ?;
56
55
57
- Ok ( StatusCode :: CREATED . into_response ( ) )
56
+ Ok ( StatusCode :: CREATED )
58
57
}
59
58
60
59
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments