Skip to content

Commit f55107a

Browse files
Merge pull request #1330 from charlespierce/bump_retry
Bump retry to 2.0.0
2 parents ec7a6a6 + ac96bc0 commit f55107a

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/volta-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ hyperx = "1.4.0"
4848
attohttpc = { version = "0.22.0", default-features = false, features = ["json", "compress", "tls-rustls"] }
4949
chain-map = "0.1.0"
5050
indexmap = "1.9.1"
51-
retry = "1.3.1"
51+
retry = "2"
5252
fs2 = "0.4.3"
5353

5454
[target.'cfg(windows)'.dependencies]

crates/volta-core/src/fs.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::Path;
99
use crate::error::{Context, ErrorKind, Fallible};
1010
use crate::layout::volta_home;
1111
use retry::delay::Fibonacci;
12-
use retry::{retry, Error as RetryError, OperationResult};
12+
use retry::{retry, OperationResult};
1313
use tempfile::{tempdir_in, NamedTempFile, TempDir};
1414

1515
/// Opens a file, creating it if it doesn't exist
@@ -190,8 +190,5 @@ where
190190
},
191191
}
192192
})
193-
.map_err(|e| match e {
194-
RetryError::Operation { error, .. } => error,
195-
RetryError::Internal(message) => io::Error::new(io::ErrorKind::Other, message),
196-
})
193+
.map_err(|e| e.error)
197194
}

0 commit comments

Comments
 (0)