From 5f6b0d6501eacfa765f2a0fd29de51a5007989d4 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 10 Jun 2024 09:54:31 +0200 Subject: [PATCH] fmt --- ic-task-scheduler/src/retry.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ic-task-scheduler/src/retry.rs b/ic-task-scheduler/src/retry.rs index 5b20a330..89c9ea70 100644 --- a/ic-task-scheduler/src/retry.rs +++ b/ic-task-scheduler/src/retry.rs @@ -335,22 +335,21 @@ pub mod test { assert!(RetryPolicy::None.should_retry(0)); assert!(!RetryPolicy::None.should_retry(1)); assert!(!RetryPolicy::None.should_retry(u32::MAX)); - assert!(!RetryPolicy::None.should_retry(u32::MAX-1)); + assert!(!RetryPolicy::None.should_retry(u32::MAX - 1)); assert!(RetryPolicy::MaxRetries { retries: 0 }.should_retry(0)); assert!(!RetryPolicy::MaxRetries { retries: 0 }.should_retry(1)); - assert!(!RetryPolicy::MaxRetries { retries: 0 }.should_retry(u32::MAX-1)); + assert!(!RetryPolicy::MaxRetries { retries: 0 }.should_retry(u32::MAX - 1)); assert!(!RetryPolicy::MaxRetries { retries: 0 }.should_retry(u32::MAX)); assert!(RetryPolicy::MaxRetries { retries: u32::MAX }.should_retry(0)); assert!(RetryPolicy::MaxRetries { retries: u32::MAX }.should_retry(1)); - assert!(RetryPolicy::MaxRetries { retries: u32::MAX }.should_retry(u32::MAX-1)); + assert!(RetryPolicy::MaxRetries { retries: u32::MAX }.should_retry(u32::MAX - 1)); assert!(RetryPolicy::MaxRetries { retries: u32::MAX }.should_retry(u32::MAX)); - + assert!(RetryPolicy::Infinite.should_retry(0)); assert!(RetryPolicy::Infinite.should_retry(1)); assert!(RetryPolicy::Infinite.should_retry(u32::MAX)); - assert!(RetryPolicy::Infinite.should_retry(u32::MAX-1)); - + assert!(RetryPolicy::Infinite.should_retry(u32::MAX - 1)); } }