Skip to content

Commit

Permalink
Increase retry dependency lower bound to 2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 15, 2024
1 parent f854664 commit 8a919e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env_logger="0.10.0"
semver = "1.0.0"
serde = "1.0.60"
rand = "0.8.0"
retry = {version = "1.3.1", default-features=false}
retry = {version = "2.0.0", default-features=false}
lazy_static = "1.2.0"
log = "0.4.14"

Expand Down
7 changes: 1 addition & 6 deletions src/core/dm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,7 @@ impl DM {
},
) {
Ok(deviceinfo) => Ok(deviceinfo),
Err(err) => match err {
RetryError::Operation { error, .. } => Err(error),
_ => Err(DmError::Core(errors::Error::UdevSync(
"Error retrying ioctl".to_string(),
))),
},
Err(RetryError { error, .. }) => Err(error),
}
}

Expand Down

0 comments on commit 8a919e5

Please sign in to comment.