From 7ea1b2c9a3238b74c5f45c1c42396e4e6f757d77 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Fri, 20 Apr 2018 22:25:49 +0200
Subject: [PATCH] apply fmt

---
 wotb/data/legacy.rs         | 4 ++--
 wotb/data/rusty.rs          | 6 +++---
 wotb/operations/distance.rs | 6 +++---
 wotb/operations/file.rs     | 4 ++--
 wotb/operations/path.rs     | 2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/wotb/data/legacy.rs b/wotb/data/legacy.rs
index 4aa3262c..202807a2 100644
--- a/wotb/data/legacy.rs
+++ b/wotb/data/legacy.rs
@@ -16,16 +16,16 @@
 //! Provide a legacy implementation of `WebOfTrust` storage and calculations.
 //! Its mostly translated directly from the original C++ code.
 
-use std::collections::HashSet;
 use std::collections::hash_set::Iter;
+use std::collections::HashSet;
 use std::fs::File;
 use std::io::prelude::*;
 
 use bincode::{deserialize, serialize, Infinite};
 
 use super::{HasLinkResult, NewLinkResult, RemLinkResult};
-use WebOfTrust;
 use NodeId;
+use WebOfTrust;
 
 #[derive(Debug, Clone, Serialize, Deserialize)]
 struct Node {
diff --git a/wotb/data/rusty.rs b/wotb/data/rusty.rs
index 1a47cfc5..e55fefaf 100644
--- a/wotb/data/rusty.rs
+++ b/wotb/data/rusty.rs
@@ -15,11 +15,11 @@
 
 //! Experimental implementation of the Web of Trust in a more "rusty" style.
 
-use std::collections::HashSet;
-use rayon::prelude::*;
-use WebOfTrust;
 use super::{HasLinkResult, NewLinkResult, RemLinkResult};
+use rayon::prelude::*;
+use std::collections::HashSet;
 use NodeId;
+use WebOfTrust;
 
 /// A node in the `WoT` graph.
 #[derive(Debug, Clone, PartialEq, Eq)]
diff --git a/wotb/operations/distance.rs b/wotb/operations/distance.rs
index e097fe5b..6f74bf18 100644
--- a/wotb/operations/distance.rs
+++ b/wotb/operations/distance.rs
@@ -15,10 +15,10 @@
 
 //! Provide a trait and implementations to compute distances.
 
-use std::collections::HashSet;
-use rayon::prelude::*;
-use data::WebOfTrust;
 use data::NodeId;
+use data::WebOfTrust;
+use rayon::prelude::*;
+use std::collections::HashSet;
 
 /// Paramters for `WoT` distance calculations
 #[derive(Debug, Copy, Clone, PartialEq)]
diff --git a/wotb/operations/file.rs b/wotb/operations/file.rs
index 7faba196..0f83673d 100644
--- a/wotb/operations/file.rs
+++ b/wotb/operations/file.rs
@@ -16,10 +16,10 @@
 //! Provide a trait and implementation to read and write `WebOfTrust` to disk.
 
 use data::NodeId;
-use std::io::prelude::*;
-use std::io;
 use std::fs;
 use std::fs::File;
+use std::io;
+use std::io::prelude::*;
 
 use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
 
diff --git a/wotb/operations/path.rs b/wotb/operations/path.rs
index 52828312..48690a0a 100644
--- a/wotb/operations/path.rs
+++ b/wotb/operations/path.rs
@@ -15,9 +15,9 @@
 
 //! Provide a trait and implementations to find paths between nodes.
 
-use std::collections::HashSet;
 use data::NodeId;
 use data::WebOfTrust;
+use std::collections::HashSet;
 
 /// Find paths between 2 nodes of a `WebOfTrust`.
 pub trait PathFinder<T: WebOfTrust> {
-- 
GitLab