Skip to content

Commit

Permalink
Fixed clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinzolotarev committed Feb 17, 2025
1 parent 74af8e7 commit db4fad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/scribe/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,14 @@ mod tests {
..Default::default()
};

assert_eq!(contract.is_log_stale(&log, 1).await.unwrap(), true);
assert!(contract.is_log_stale(&log, 1).await.unwrap());

let log = Log {
block_number: Some(1),
block_timestamp: Some(now - 50),
..Default::default()
};
assert_eq!(contract.is_log_stale(&log, 100).await.unwrap(), false);
assert!(!contract.is_log_stale(&log, 100).await.unwrap());

// empty block number returns error
let log = Log {
Expand Down

0 comments on commit db4fad9

Please sign in to comment.