Skip to content

Commit

Permalink
It compiles with tuple approach after omitting EngineDesc array
Browse files Browse the repository at this point in the history
  • Loading branch information
qingxiang-jia committed May 30, 2023
1 parent de06ae2 commit 469f41d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fcp-dbus/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ fn main() {
}]
};

let componnet_variant = Box::new(component) as Box<dyn RefArg>;
let tuple = (component.name, component.description, component.version, component.license, component.author, component.homepage, component.exec, component.textdomain, component.attachments);

match ibus.register_component(componnet_variant) {
let componnet_variant = Box::new(tuple) as Box<dyn RefArg>;

match ibus.register_component(dbus::arg::Variant(componnet_variant)) {
Ok(()) => println!("Component registration successful!"),
Err(e) => {
println!("Failed to register component.");
Expand Down

0 comments on commit 469f41d

Please sign in to comment.