From 66d3066e8e476d13b6d55113679a70db773d3430 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 9 Jan 2025 12:10:40 -0500 Subject: [PATCH] dbus_api tree: remove unnecessary map_or Signed-off-by: Bryan Gurney --- src/dbus_api/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbus_api/tree.rs b/src/dbus_api/tree.rs index 4b977591d8..4ffab6c470 100644 --- a/src/dbus_api/tree.rs +++ b/src/dbus_api/tree.rs @@ -298,7 +298,7 @@ impl DbusTreeHandler { opath .get_data() .as_ref() - .map_or(false, |op_cxt| op_cxt.parent == item) + .is_some_and(|op_cxt| op_cxt.parent == item) }) { if let StratisUuid::Fs(_) = opath .get_data()