From b51154af8677414539ca174fb3d095c8315a923a Mon Sep 17 00:00:00 2001 From: Andreas Sommer Date: Mon, 17 Nov 2025 11:39:32 +0100 Subject: [PATCH] Add missing error type to strategy handler example --- reqwest-retry/src/retryable_strategy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reqwest-retry/src/retryable_strategy.rs b/reqwest-retry/src/retryable_strategy.rs index 8a790c4..efaff99 100644 --- a/reqwest-retry/src/retryable_strategy.rs +++ b/reqwest-retry/src/retryable_strategy.rs @@ -41,7 +41,7 @@ use reqwest_middleware::Error; /// // Just a toy example, retry when the successful response code is 201, else do nothing. /// struct Retry201; /// impl RetryableStrategy for Retry201 { -/// fn handle(&self, res: &Result) -> Option { +/// fn handle(&self, res: &Result) -> Option { /// match res { /// // retry if 201 /// Ok(success) if success.status() == 201 => Some(Retryable::Transient),