From fbcec8923b5d66ac01ce79827fbd27541825b5f9 Mon Sep 17 00:00:00 2001 From: James Hiew Date: Fri, 21 Oct 2022 13:14:18 +0100 Subject: [PATCH] Fix formatting --- apps/src/lib/config/ethereum_bridge/params.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/src/lib/config/ethereum_bridge/params.rs b/apps/src/lib/config/ethereum_bridge/params.rs index 3ba5be7d226..810941623c6 100644 --- a/apps/src/lib/config/ethereum_bridge/params.rs +++ b/apps/src/lib/config/ethereum_bridge/params.rs @@ -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) }) } @@ -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) }) } }