diff --git a/src/config.rs b/src/config.rs index e455fe9..40f4de2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,7 @@ use std::{path::PathBuf, time::Duration}; use serde::Deserialize; -use serde_with::{serde_as, DisplayFromStr, DurationSeconds}; +use serde_with::{DisplayFromStr, DurationSeconds, serde_as}; use tracing_subscriber::filter::LevelFilter; #[derive(Deserialize)] diff --git a/src/index.rs b/src/index.rs index 1441b48..d6cf6cf 100644 --- a/src/index.rs +++ b/src/index.rs @@ -1,4 +1,4 @@ -use std::sync::{atomic::Ordering, Arc}; +use std::sync::{Arc, atomic::Ordering}; use axum::extract::State; @@ -12,6 +12,7 @@ pub async fn index(State(engine): State>) -> String { .replace("%uplcount%", &count.to_string()) } +#[rustfmt::skip] pub async fn robots_txt() -> &'static str { /// robots.txt that tells web crawlers not to list uploads const ROBOTS_TXT: &str = concat!( diff --git a/src/main.rs b/src/main.rs index 968539b..7ea17d9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,12 @@ use std::{path::PathBuf, sync::Arc}; use argh::FromArgs; -use color_eyre::eyre::{self, bail, Context}; +use color_eyre::eyre::{self, Context, bail}; use engine::Engine; use axum::{ - routing::{get, post}, Router, + routing::{get, post}, }; use tokio::{fs, net::TcpListener, signal}; use tracing::{info, warn};