add rustfmt.toml (#118)

This commit is contained in:
Al Liu 2023-04-19 15:59:51 +08:00 committed by GitHub
parent 2206d7a291
commit c2d1ee1291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

2
rustfmt.toml Normal file
View File

@ -0,0 +1,2 @@
reorder_imports = true
reorder_modules = true

View File

@ -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;