From 56b7a4d843e3404b80becca22af437e47636056a Mon Sep 17 00:00:00 2001 From: xzeldon Date: Mon, 10 Jul 2023 22:10:41 +0300 Subject: [PATCH] fmt --- rustfmt.toml | 2 ++ src/main.rs | 26 +++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..8571b0c --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,2 @@ +imports_granularity = "Item" +group_imports = "StdExternalCrate" diff --git a/src/main.rs b/src/main.rs index 63c7fe6..167f432 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,15 +1,19 @@ -use std::{env::var, io, net::SocketAddr, sync::Once}; +use std::env::var; +use std::io; +use std::net::SocketAddr; +use std::sync::Once; -use axum::{ - body::{Bytes, Full}, - extract::{DefaultBodyLimit, Multipart}, - http::StatusCode, - response::{IntoResponse, Response}, - routing::get, - Router, -}; - -use magick_rust::{magick_wand_genesis, MagickWand}; +use axum::body::Bytes; +use axum::body::Full; +use axum::extract::DefaultBodyLimit; +use axum::extract::Multipart; +use axum::http::StatusCode; +use axum::response::IntoResponse; +use axum::response::Response; +use axum::routing::get; +use axum::Router; +use magick_rust::magick_wand_genesis; +use magick_rust::MagickWand; use tower_http::limit::RequestBodyLimitLayer; static START: Once = Once::new();