[fmt] added rustfmt.toml and applied it

This commit is contained in:
ddidderr 2024-04-08 11:30:05 +02:00
parent 2ec1dc7842
commit 3901dc8bb0
Signed by: ddidderr
GPG Key ID: 3841F1C27E6F0E14
2 changed files with 9 additions and 5 deletions

3
rustfmt.toml Normal file
View File

@ -0,0 +1,3 @@
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
imports_layout = "HorizontalVertical"

View File

@ -1,9 +1,10 @@
use actix_web::{App, HttpServer}; use std::{
use std::env; env,
use std::net::IpAddr; net::{IpAddr, SocketAddr},
use std::net::SocketAddr; thread::available_parallelism,
use std::thread::available_parallelism; };
use actix_web::{App, HttpServer};
use clap::{crate_name, crate_version, Parser}; use clap::{crate_name, crate_version, Parser};
#[derive(Parser, Debug)] #[derive(Parser, Debug)]