Skip to content

Commit 912fb68

Browse files
authored
Merge pull request #3271 from gautamprikshit1/bump_retry
Bumped retry
2 parents 41b631c + 31705fa commit 912fb68

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ zstd = "0.12"
7979
[dependencies.retry]
8080
default-features = false
8181
features = ["random"]
82-
version = "1.3.1"
82+
version = "2.0.0"
8383

8484
[dependencies.rs_tracing]
8585
features = ["rs_tracing"]

src/utils/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,7 @@ pub fn remove_file(name: &'static str, path: &Path) -> Result<()> {
402402
pub(crate) fn ensure_file_removed(name: &'static str, path: &Path) -> Result<()> {
403403
let result = remove_file(name, path);
404404
if let Err(err) = &result {
405-
if let Some(retry::Error::Operation { error: e, .. }) =
406-
err.downcast_ref::<retry::Error<io::Error>>()
407-
{
405+
if let Some(retry::Error { error: e, .. }) = err.downcast_ref::<retry::Error<io::Error>>() {
408406
if e.kind() == io::ErrorKind::NotFound {
409407
return Ok(());
410408
}

0 commit comments

Comments
 (0)