aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-08-06 13:53:36 -0700
committerZeyla Hellyer <[email protected]>2018-08-06 13:53:56 -0700
commit9a863bd78e8edc5849e56e979888f1191b1d5845 (patch)
tree7404179d8cf257d2681e37b21141b0dec8b9b2bb /src/http
parentPass failed sub-command to default-command (#357) (diff)
downloadserenity-9a863bd78e8edc5849e56e979888f1191b1d5845.tar.xz
serenity-9a863bd78e8edc5849e56e979888f1191b1d5845.zip
Remove usage of inclusive range syntax
We target 1.25.0, but inclusive range is 1.26.0 syntax.
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 75dd726..7d0ca17 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -1788,7 +1788,7 @@ fn retry(request: &Request) -> HyperResult<HyperResponse> {
// Retry the request twice in a loop until it succeeds.
//
// If it doesn't and the loop breaks, try one last time.
- for _ in 0..=2 {
+ for _ in 0..3 {
match request.build().send() {
Err(HyperError::Io(ref io))
if io.kind() == IoErrorKind::ConnectionAborted => continue,