From 6a75b97f4906743de34562862a823e119b20c714 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89lo=C3=AFs?= <elois@ifee.fr>
Date: Sun, 11 Nov 2018 17:45:51 +0100
Subject: [PATCH] [style] comply clippy

---
 core/rooter.rs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/core/rooter.rs b/core/rooter.rs
index df1d4bdf..1dce12f5 100644
--- a/core/rooter.rs
+++ b/core/rooter.rs
@@ -241,7 +241,11 @@ fn start_broadcasting_thread(
 }
 
 /// Start conf thread
-fn start_conf_thread(profile: &str, conf: &mut DuRsConf, receiver: mpsc::Receiver<DursMsgContent>) {
+fn start_conf_thread(
+    profile: &str,
+    conf: &mut DuRsConf,
+    receiver: &mpsc::Receiver<DursMsgContent>,
+) {
     loop {
         match receiver.recv() {
             Ok(msg) => {
@@ -349,7 +353,7 @@ pub fn start_rooter(
 
         // Create conf thread
         thread::spawn(move || {
-            start_conf_thread(&profile, &mut conf.clone(), conf_receiver);
+            start_conf_thread(&profile, &mut conf.clone(), &conf_receiver);
         });
 
         // Define variables
-- 
GitLab