Open
Description
In the process of running sample. I fail on Master, while they works on tags/0.6.2.
Compiling lvgl v0.6.2 (/home/fulup/Workspace/Tux-Evse/lv_binding_rust/lvgl)
error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> lvgl/../examples/demo.rs:44:5
|
44 | screen.add_style(Part::Main, &mut screen_style)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `()`
Interfaces for functions like add_style changed. On master they changed and to stop returning LvResult<()>
fn add_style(&mut self, part: Self::Part, style: &'a mut Style) {
unsafe {
lvgl_sys::lv_obj_add_style(
self.raw().as_mut(),
style.raw.as_mut() as *mut _,
part.into(),
);
};
}