diff --git a/blockchain/lib.rs b/blockchain/lib.rs index f365db83279061256958cd27d4b910cc087ca44c..50397e5f7a97d6a464997bdda5545b9092fe808c 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 7cd630a796bca5e93fab9f9b64116a696c1983ae..b79320c6b42c5d95be3e3838a9e4c5a4a052a418 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 9ba82ae0008e4332be7ade252de707931a8f018a..b0181eb049e78eeb8e0a89378894edacc80286fb 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 d0b156a685ada34b1366c9de8649d4fb0582359b..e78986c8f9c7d5f8066db3278a25d94b08fed34f 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>,