1
0
Fork 0

reorg imports

Zynh Ludwig 2024-08-29 22:50:21 -07:00
parent 25cee6b111
commit 9caf7b78fe
1 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,11 @@
use async_zip::{tokio::write::ZipFileWriter, Compression, ZipEntryBuilder}; use async_zip::{tokio::write::ZipFileWriter, Compression, ZipEntryBuilder};
use futures::TryStreamExt;
use tokio_util::{
compat::FuturesAsyncWriteCompatExt,
io::{ReaderStream, StreamReader},
};
use axum::{ use axum::{
body::Body, body::Body,
extract::{ConnectInfo, DefaultBodyLimit, Multipart, Request, State}, extract::{ConnectInfo, DefaultBodyLimit, Multipart, Request, State},
@ -10,20 +16,12 @@ use axum::{
Json, Router, Json, Router,
}; };
use axum_extra::TypedHeader; use axum_extra::TypedHeader;
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
use futures::TryStreamExt;
use sanitize_filename_reader_friendly::sanitize; use sanitize_filename_reader_friendly::sanitize;
use std::{io, net::SocketAddr, path::Path}; use std::{io, net::SocketAddr, path::Path};
use tokio_util::{
compat::FuturesAsyncWriteCompatExt,
io::{ReaderStream, StreamReader},
};
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
mod cache; mod cache;
mod state; mod state;
mod util; mod util;
@ -31,8 +29,8 @@ mod views;
use util::{headers::ForwardedFor, logging, ssr, sweeper}; use util::{headers::ForwardedFor, logging, ssr, sweeper};
use crate::state::*; use state::*;
use crate::views::*; use views::*;
#[tokio::main] #[tokio::main]
async fn main() -> io::Result<()> { async fn main() -> io::Result<()> {