From 3d28261abf55386b30eb1d0eb5fe3064251212a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20=C3=96sterberg?= Date: Wed, 4 Feb 2026 12:09:33 +0100 Subject: [PATCH] style: Format with cargo fmt --- src/auth.rs | 2 +- src/main.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 {