Skip to content

Commit

Permalink
rust: remove an unnecessary call to unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 8, 2024
1 parent 209eeb0 commit c866d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/agama-server/src/dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c866d63

Please sign in to comment.