Skip to content

Commit 31705fa

Browse files
Bumped retry
1 parent 9747102 commit 31705fa

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
@@ -73,7 +73,7 @@ trycmd = "0.14.13"
7373
[dependencies.retry]
7474
default-features = false
7575
features = ["random"]
76-
version = "1.3.1"
76+
version = "2.0.0"
7777

7878
[dependencies.rs_tracing]
7979
features = ["rs_tracing"]

src/utils/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,7 @@ pub fn remove_file(name: &'static str, path: &Path) -> Result<()> {
409409
pub(crate) fn ensure_file_removed(name: &'static str, path: &Path) -> Result<()> {
410410
let result = remove_file(name, path);
411411
if let Err(err) = &result {
412-
if let Some(retry::Error::Operation { error: e, .. }) =
413-
err.downcast_ref::<retry::Error<io::Error>>()
414-
{
412+
if let Some(retry::Error { error: e, .. }) = err.downcast_ref::<retry::Error<io::Error>>() {
415413
if e.kind() == io::ErrorKind::NotFound {
416414
return Ok(());
417415
}

0 commit comments

Comments
 (0)