Skip to content

Commit

Permalink
Remove usage of inclusive range syntax
Browse files Browse the repository at this point in the history
We target 1.25.0, but inclusive range is 1.26.0 syntax.
  • Loading branch information
Zeyla Hellyer committed Aug 6, 2018
1 parent db21036 commit 9a863bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a863bd

Please sign in to comment.