From b6977edc658c957ee20df695809a9151a6dd3df5 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Wed, 31 Oct 2018 13:26:44 +0100
Subject: [PATCH] [clippy] comply latest version

---
 blockchain/lib.rs | 2 +-
 core/lib.rs       | 4 ++--
 dal/lib.rs        | 4 ++--
 module/lib.rs     | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/blockchain/lib.rs b/blockchain/lib.rs
index f365db83..50397e5f 100644
--- a/blockchain/lib.rs
+++ b/blockchain/lib.rs
@@ -502,7 +502,7 @@ impl BlockchainModule {
         current_blockstamp
     }
     /// Start blockchain module.
-    pub fn start_blockchain(&mut self, blockchain_receiver: &mpsc::Receiver<DursMsg>) -> () {
+    pub fn start_blockchain(&mut self, blockchain_receiver: &mpsc::Receiver<DursMsg>) {
         info!("BlockchainModule::start_blockchain()");
 
         // Get dbs path
diff --git a/core/lib.rs b/core/lib.rs
index 7cd630a7..b79320c6 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -114,8 +114,8 @@ pub fn main<'b, 'a: 'b, CliFunc, PlugFunc>(
     mut plug_modules: PlugFunc,
 ) where
     'b: 'a,
-    CliFunc: FnMut(&mut DuniterCore<'a, 'b, DuRsConf>) -> (),
-    PlugFunc: FnMut(&mut DuniterCore<'a, 'b, DuRsConf>) -> (),
+    CliFunc: FnMut(&mut DuniterCore<'a, 'b, DuRsConf>),
+    PlugFunc: FnMut(&mut DuniterCore<'a, 'b, DuRsConf>),
 {
     // Instantiate duniter core
     let mut duniter_core = DuniterCore::<DuRsConf>::new(soft_name, soft_version, clap_app, 0);
diff --git a/dal/lib.rs b/dal/lib.rs
index 9ba82ae0..b0181eb0 100644
--- a/dal/lib.rs
+++ b/dal/lib.rs
@@ -162,7 +162,7 @@ impl<D: Serialize + DeserializeOwned + Debug + Default + Clone + Send> BinDB<D>
     /// This gives you an exclusive lock on the memory object. Trying to open the database in writing will block if it is currently being written to.
     pub fn write<T>(&self, task: T) -> Result<(), RustbreakError>
     where
-        T: FnOnce(&mut D) -> (),
+        T: FnOnce(&mut D),
     {
         match *self {
             BinDB::File(ref file_db) => file_db.write(task),
@@ -172,7 +172,7 @@ impl<D: Serialize + DeserializeOwned + Debug + Default + Clone + Send> BinDB<D>
     /// Write lock the database and get write access to the Data container in a safe way (clone of the internal data is made).
     pub fn write_safe<T>(&self, task: T) -> Result<(), RustbreakError>
     where
-        T: FnOnce(&mut D) -> () + UnwindSafe,
+        T: FnOnce(&mut D) + UnwindSafe,
     {
         match *self {
             BinDB::File(ref file_db) => file_db.write_safe(task),
diff --git a/module/lib.rs b/module/lib.rs
index d0b156a6..e78986c8 100644
--- a/module/lib.rs
+++ b/module/lib.rs
@@ -341,7 +341,7 @@ pub trait DuniterModule<DC: DuniterConf, M: ModuleMessage> {
         keys: RequiredKeysContent,
         module_conf: Self::ModuleConf,
         subcommand_args: Self::ModuleOpt,
-    ) -> ();
+    );
     /// Launch the module
     fn start(
         soft_meta_datas: &SoftwareMetaDatas<DC>,
-- 
GitLab