diff --git a/core/rooter.rs b/core/rooter.rs index df1d4bdfe3daee58f0cc11c9dae28577cdd1ae81..1dce12f5578f4450a9617700c031d7c51839bb9b 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