fmt
This commit is contained in:
parent
5c0517d131
commit
daa46f9872
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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<Arc<crate::engine::Engine>>) -> 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!(
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in New Issue