From c866d6301b891f34227594966e9bce491b5de8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 8 May 2024 23:27:00 +0100 Subject: [PATCH] rust: remove an unnecessary call to unwrap() --- rust/agama-server/src/dbus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/agama-server/src/dbus.rs b/rust/agama-server/src/dbus.rs index 9143aa9ab1..deb9d166e1 100644 --- a/rust/agama-server/src/dbus.rs +++ b/rust/agama-server/src/dbus.rs @@ -98,7 +98,7 @@ impl DBusObjectChangesStream { let args = properties.args().ok()?; if args.interface_name.as_str() == interface { - let path = OwnedObjectPath::from(properties.path().unwrap().clone()); + let path: OwnedObjectPath = properties.path()?.into(); let data = to_owned_hash(&args.changed_properties); Some(DBusObjectChange::Changed(path, data)) } else {