Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-chf committed Oct 21, 2022
1 parent a284afc commit fbcec89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/src/lib/config/ethereum_bridge/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct MinimumConfirmations(NonZeroU64);

impl Default for MinimumConfirmations {
fn default() -> Self {
// SAFETY: The only way the API contract of `NonZeroU64`can be violated
// SAFETY: The only way the API contract of `NonZeroU64` can be violated
// is if we construct values of this type using 0 as argument.
Self(unsafe { NonZeroU64::new_unchecked(100) })
}
Expand Down Expand Up @@ -57,8 +57,9 @@ pub struct ContractVersion(NonZeroU64);

impl Default for ContractVersion {
fn default() -> Self {
// SAFETY: The only way the API contract of `NonZeroU64`can be violated
// is if we construct values of this type using 0 as argument.
// SAFETY: The only way the API contract of `NonZeroU64` can be
// violated is if we construct values of this type using 0 as
// argument.
Self(unsafe { NonZeroU64::new_unchecked(1) })
}
}
Expand Down

0 comments on commit fbcec89

Please sign in to comment.