From c2d1ee1291bd166bf0745288eaaa47487f74164e Mon Sep 17 00:00:00 2001 From: Al Liu Date: Wed, 19 Apr 2023 15:59:51 +0800 Subject: [PATCH] add rustfmt.toml (#118) --- rustfmt.toml | 2 ++ simulations/src/runner/mod.rs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..745fb75b --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,2 @@ +reorder_imports = true +reorder_modules = true diff --git a/simulations/src/runner/mod.rs b/simulations/src/runner/mod.rs index aa9928be..5ee8297b 100644 --- a/simulations/src/runner/mod.rs +++ b/simulations/src/runner/mod.rs @@ -5,16 +5,17 @@ mod sync_runner; // std use std::marker::PhantomData; - use std::sync::{Arc, RwLock}; use std::time::Duration; + // crates -use crate::network::Network; use rand::rngs::SmallRng; use rand::{RngCore, SeedableRng}; use rayon::prelude::*; use serde::Serialize; + // internal +use crate::network::Network; use crate::node::Node; use crate::output_processors::OutData; use crate::overlay::Overlay;