Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
chore(clippy): make clippy happy (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 23, 2022
1 parent 3764266 commit 04ef8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl BundleRequest {

/// Adds a revertible transaction to the bundle request.
///
/// This differs from [`BundleRequest::push_transaction`] in that the bund will still be
/// This differs from [`BundleRequest::push_transaction`] in that the bundle will still be
/// considered valid if the transaction reverts.
pub fn push_revertible_transaction<T: Into<BundleTransaction>>(mut self, tx: T) -> Self {
let tx = tx.into();
Expand Down Expand Up @@ -518,8 +518,8 @@ mod tests {
)
.unwrap();

assert_eq!(bundle_stats.is_simulated, true);
assert_eq!(bundle_stats.is_sent_to_miners, true);
assert!(bundle_stats.is_simulated);
assert!(bundle_stats.is_sent_to_miners);
assert_eq!(
bundle_stats.simulated_at.unwrap().to_rfc3339(),
"2021-08-06T21:36:06.317+00:00"
Expand Down
2 changes: 1 addition & 1 deletion src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mod tests {
)
.unwrap();

assert_eq!(user_stats.is_high_priority, true);
assert!(user_stats.is_high_priority);
assert_eq!(
user_stats.all_time_miner_payments,
U256::from_dec_str("1280749594841588639").unwrap()
Expand Down

0 comments on commit 04ef8a1

Please sign in to comment.