[fmt] added rustfmt.toml and applied it
This commit is contained in:
parent
2ec1dc7842
commit
3901dc8bb0
3
rustfmt.toml
Normal file
3
rustfmt.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
imports_granularity = "Crate"
|
||||||
|
imports_layout = "HorizontalVertical"
|
11
src/main.rs
11
src/main.rs
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user