@@ -402,7 +402,7 @@ impl Api {
402
402
http:: HTTP_STATUS_503_SERVICE_UNAVAILABLE ,
403
403
http:: HTTP_STATUS_504_GATEWAY_TIMEOUT ,
404
404
] ,
405
- ) ?
405
+ )
406
406
. progress_bar_mode ( progress_bar_mode) ;
407
407
408
408
// The request is performed to an absolute URL. Thus, `Self::request()` will
@@ -974,7 +974,7 @@ impl<'a> AuthenticatedApi<'a> {
974
974
http:: HTTP_STATUS_503_SERVICE_UNAVAILABLE ,
975
975
http:: HTTP_STATUS_504_GATEWAY_TIMEOUT ,
976
976
] ,
977
- ) ?
977
+ )
978
978
. send ( ) ?
979
979
. convert_rnf ( ApiErrorKind :: ProjectNotFound )
980
980
}
@@ -1007,7 +1007,7 @@ impl<'a> AuthenticatedApi<'a> {
1007
1007
http:: HTTP_STATUS_503_SERVICE_UNAVAILABLE ,
1008
1008
http:: HTTP_STATUS_504_GATEWAY_TIMEOUT ,
1009
1009
] ,
1010
- ) ?
1010
+ )
1011
1011
. send ( ) ?
1012
1012
. convert_rnf ( ApiErrorKind :: ReleaseNotFound )
1013
1013
}
@@ -1038,7 +1038,7 @@ impl<'a> AuthenticatedApi<'a> {
1038
1038
http:: HTTP_STATUS_503_SERVICE_UNAVAILABLE ,
1039
1039
http:: HTTP_STATUS_504_GATEWAY_TIMEOUT ,
1040
1040
] ,
1041
- ) ?
1041
+ )
1042
1042
. send ( ) ?
1043
1043
. convert_rnf ( ApiErrorKind :: ReleaseNotFound )
1044
1044
}
@@ -1415,7 +1415,7 @@ impl RegionSpecificApi<'_> {
1415
1415
)
1416
1416
} ) ?,
1417
1417
& [ http:: HTTP_STATUS_507_INSUFFICIENT_STORAGE ] ,
1418
- ) ?
1418
+ )
1419
1419
. progress_bar_mode ( ProgressBarMode :: Request )
1420
1420
. send ( ) ?
1421
1421
. convert ( )
@@ -1481,7 +1481,7 @@ impl RegionSpecificApi<'_> {
1481
1481
http:: HTTP_STATUS_503_SERVICE_UNAVAILABLE ,
1482
1482
http:: HTTP_STATUS_504_GATEWAY_TIMEOUT ,
1483
1483
] ,
1484
- ) ?
1484
+ )
1485
1485
. progress_bar_mode ( progress_bar_mode)
1486
1486
. send ( ) ?;
1487
1487
if resp. status ( ) == 409 {
@@ -1745,15 +1745,11 @@ impl ApiRequest {
1745
1745
self
1746
1746
}
1747
1747
1748
- #[ expect( clippy:: unnecessary_wraps) ]
1749
- pub fn with_retry (
1750
- mut self ,
1751
- max_retries : u32 ,
1752
- retry_on_statuses : & ' static [ u32 ] ,
1753
- ) -> ApiResult < Self > {
1748
+ pub fn with_retry ( mut self , max_retries : u32 , retry_on_statuses : & ' static [ u32 ] ) -> Self {
1754
1749
self . max_retries = max_retries;
1755
1750
self . retry_on_statuses = retry_on_statuses;
1756
- Ok ( self )
1751
+
1752
+ self
1757
1753
}
1758
1754
1759
1755
/// Get a copy of the header list
0 commit comments