Skip to content

Commit 3d28261

Browse files
committed
style: Format with cargo fmt
1 parent 8bcd651 commit 3d28261

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{hint::black_box, io::Read};
22

3-
use axum::{headers::Authorization, TypedHeader};
3+
use axum::{TypedHeader, headers::Authorization};
44
use http::HeaderValue;
55
use sha2::Digest;
66

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use axum::response::IntoResponse;
1010
use cfg::Config;
1111
use clap::Parser;
1212

13-
use axum::routing::{get, put};
1413
use axum::Router;
14+
use axum::routing::{get, put};
1515
use 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;
9088
use axum::Json;
9189
use axum::TypedHeader;
92-
use http::{header, StatusCode};
90+
use axum::extract::{Path, State};
91+
use axum::headers::Authorization;
92+
use http::{StatusCode, header};
9393
use std::collections::HashSet;
9494

9595
async fn get_ns(path: Path<String>, state: State<AppState<impl Database>>) -> impl IntoResponse {

0 commit comments

Comments
 (0)