From 8a919e50962455a3476bb94769792d63b05763ef Mon Sep 17 00:00:00 2001
From: mulhern <amulhern@redhat.com>
Date: Wed, 7 Feb 2024 09:29:54 -0500
Subject: [PATCH] Increase retry dependency lower bound to 2.0.0

Signed-off-by: mulhern <amulhern@redhat.com>
---
 Cargo.toml     | 2 +-
 src/core/dm.rs | 7 +------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index b10102bb..3c3dc323 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
 
diff --git a/src/core/dm.rs b/src/core/dm.rs
index 28974301..a93b2b17 100644
--- a/src/core/dm.rs
+++ b/src/core/dm.rs
@@ -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),
         }
     }