File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11use std:: { hint:: black_box, io:: Read } ;
22
3- use axum:: { headers:: Authorization , TypedHeader } ;
3+ use axum:: { TypedHeader , headers:: Authorization } ;
44use http:: HeaderValue ;
55use sha2:: Digest ;
66
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use axum::response::IntoResponse;
1010use cfg:: Config ;
1111use clap:: Parser ;
1212
13- use axum:: routing:: { get, put} ;
1413use axum:: Router ;
14+ use axum:: routing:: { get, put} ;
1515use db:: Database ;
1616
1717#[ tokio:: main]
@@ -83,13 +83,13 @@ where
8383 api_key : Option < String > ,
8484}
8585
86- use crate :: auth:: { accept_auth , ApiKey } ;
86+ use crate :: auth:: { ApiKey , accept_auth } ;
8787
88- use axum:: extract:: { Path , State } ;
89- use axum:: headers:: Authorization ;
9088use axum:: Json ;
9189use axum:: TypedHeader ;
92- use http:: { header, StatusCode } ;
90+ use axum:: extract:: { Path , State } ;
91+ use axum:: headers:: Authorization ;
92+ use http:: { StatusCode , header} ;
9393use std:: collections:: HashSet ;
9494
9595async fn get_ns ( path : Path < String > , state : State < AppState < impl Database > > ) -> impl IntoResponse {
You can’t perform that action at this time.
0 commit comments