Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Dec 9, 2024
1 parent 6567955 commit b823cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ impl<TAddr: NodeAddressable + 'static> BaseLayerScanner<TAddr> {
// 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);
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_watcher/src/transaction_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b823cde

Please sign in to comment.