diff --git a/cmd/miner_client/src/main.rs b/cmd/miner_client/src/main.rs index 734ee6c662..8ad1c0c148 100644 --- a/cmd/miner_client/src/main.rs +++ b/cmd/miner_client/src/main.rs @@ -49,7 +49,7 @@ fn main() { }); if let Err(err) = system.block_on(async move { let registry = RegistryService::launch(); - let _ = registry.put_shared(config).await?; + registry.put_shared(config).await?; let stratum_cli_srv = registry .register_by_factory::<StratumClientService, StratumClientServiceServiceFactory>() .await?; diff --git a/commons/stream-task/src/event.rs b/commons/stream-task/src/event.rs index 5cd0c04a17..2d28c53548 100644 --- a/commons/stream-task/src/event.rs +++ b/commons/stream-task/src/event.rs @@ -227,14 +227,14 @@ impl TaskEventCounterHandle { .iter() .map(|counter| counter.get_report()) .collect::<Vec<_>>(); - if let Some(counter) = self.current_counter.lock().as_ref().take() { + if let Some(counter) = self.current_counter.lock().as_ref() { reports.push(counter.get_report()); } reports } pub fn total_report(&self) -> Option<TaskProgressReport> { - if let Some(current_counter) = self.current_counter.lock().as_ref().take() { + if let Some(current_counter) = self.current_counter.lock().as_ref() { let task_name = current_counter.task_name.clone(); let mut reports = self .previous_counters diff --git a/miner/src/create_block_template/mod.rs b/miner/src/create_block_template/mod.rs index 27b9b56e71..ca1b503dea 100644 --- a/miner/src/create_block_template/mod.rs +++ b/miner/src/create_block_template/mod.rs @@ -349,7 +349,7 @@ where let excluded_txns = opened_block.push_txns(txns)?; let template = opened_block.finalize()?; for invalid_txn in excluded_txns.discarded_txns { - let _ = self.tx_provider.remove_invalid_txn(invalid_txn.id()); + self.tx_provider.remove_invalid_txn(invalid_txn.id()); } Ok(BlockTemplateResponse { diff --git a/rust-toolchain b/rust-toolchain index 84c7d0bad2..59790a7018 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.61.0 \ No newline at end of file +1.62.0 \ No newline at end of file diff --git a/stratum/src/stratum.rs b/stratum/src/stratum.rs index 387f2bbe8f..8878e8c696 100644 --- a/stratum/src/stratum.rs +++ b/stratum/src/stratum.rs @@ -154,7 +154,7 @@ impl ServiceHandler<Self, SubmitShareEvent> for Stratum { let mut seal: MinerSubmitSealRequest = msg.0.try_into()?; seal.minting_blob = current_mint_event.minting_blob; - let _ = self.miner_service.try_send(seal)?; + self.miner_service.try_send(seal)?; } Ok(()) }