diff --git a/applications/tari_dan_app_utilities/src/base_layer_scanner.rs b/applications/tari_dan_app_utilities/src/base_layer_scanner.rs index 28aa3757b..0452c0309 100644 --- a/applications/tari_dan_app_utilities/src/base_layer_scanner.rs +++ b/applications/tari_dan_app_utilities/src/base_layer_scanner.rs @@ -420,7 +420,7 @@ impl BaseLayerScanner { // if the validator node MR has changed, we need to update the active validator node set if self .last_scanned_validator_node_mr - .is_none_or(|last| last != current_validator_node_mr) + .map_or(true, |last| last != current_validator_node_mr) { let constants = self.base_node_client.get_consensus_constants(block_info.height).await?; let scanned_epoch = constants.height_to_epoch(block_info.height); diff --git a/applications/tari_watcher/src/transaction_worker.rs b/applications/tari_watcher/src/transaction_worker.rs index af0433480..3a7e226a9 100644 --- a/applications/tari_watcher/src/transaction_worker.rs +++ b/applications/tari_watcher/src/transaction_worker.rs @@ -109,7 +109,7 @@ async fn check_and_submit_layer_one_transactions( trace!("Skipping non-file: {}", file.path().display()); continue; } - if file.path().extension().is_none_or(|s| s != "json") { + if file.path().extension().map_or(true, |s| s != "json") { debug!("Skipping non-JSON file: {}", file.path().display()); continue; }