diff --git a/src/auth.rs b/src/auth.rs index 611ebca..969d70b 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -1,6 +1,6 @@ use std::{hint::black_box, io::Read}; -use axum::{headers::Authorization, TypedHeader}; +use axum::{TypedHeader, headers::Authorization}; use http::HeaderValue; use sha2::Digest; diff --git a/src/main.rs b/src/main.rs index 5d95e45..84fd5cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,8 @@ use axum::response::IntoResponse; use cfg::Config; use clap::Parser; -use axum::routing::{get, put}; use axum::Router; +use axum::routing::{get, put}; use db::Database; #[tokio::main] @@ -83,13 +83,13 @@ where api_key: Option, } -use crate::auth::{accept_auth, ApiKey}; +use crate::auth::{ApiKey, accept_auth}; -use axum::extract::{Path, State}; -use axum::headers::Authorization; use axum::Json; use axum::TypedHeader; -use http::{header, StatusCode}; +use axum::extract::{Path, State}; +use axum::headers::Authorization; +use http::{StatusCode, header}; use std::collections::HashSet; async fn get_ns(path: Path, state: State>) -> impl IntoResponse {