From 3901dc8bb0e7345f188906dc0128310345f9d54c Mon Sep 17 00:00:00 2001 From: ddidderr Date: Mon, 8 Apr 2024 11:30:05 +0200 Subject: [PATCH] [fmt] added rustfmt.toml and applied it --- rustfmt.toml | 3 +++ src/main.rs | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..e270811 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,3 @@ +group_imports = "StdExternalCrate" +imports_granularity = "Crate" +imports_layout = "HorizontalVertical" diff --git a/src/main.rs b/src/main.rs index f45bbec..f5f5903 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,10 @@ -use actix_web::{App, HttpServer}; -use std::env; -use std::net::IpAddr; -use std::net::SocketAddr; -use std::thread::available_parallelism; +use std::{ + env, + net::{IpAddr, SocketAddr}, + thread::available_parallelism, +}; +use actix_web::{App, HttpServer}; use clap::{crate_name, crate_version, Parser}; #[derive(Parser, Debug)]