Skip to content

Commit ab19aa9

Browse files
authored
Merge pull request #902 from mulkieran/retry-2.0.0
Increase retry dependency lower bound to 2.0.0
2 parents f854664 + 8a919e5 commit ab19aa9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env_logger="0.10.0"
2020
semver = "1.0.0"
2121
serde = "1.0.60"
2222
rand = "0.8.0"
23-
retry = {version = "1.3.1", default-features=false}
23+
retry = {version = "2.0.0", default-features=false}
2424
lazy_static = "1.2.0"
2525
log = "0.4.14"
2626

src/core/dm.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,7 @@ impl DM {
390390
},
391391
) {
392392
Ok(deviceinfo) => Ok(deviceinfo),
393-
Err(err) => match err {
394-
RetryError::Operation { error, .. } => Err(error),
395-
_ => Err(DmError::Core(errors::Error::UdevSync(
396-
"Error retrying ioctl".to_string(),
397-
))),
398-
},
393+
Err(RetryError { error, .. }) => Err(error),
399394
}
400395
}
401396

0 commit comments

Comments
 (0)