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 {