Closed
Description
I was checking the generated code for lv_label
and noticed this rust generated code returns LvResult
when the C function returns void
, is this expected? Do we always need to return Ok
?
pub fn set_recolor (& mut self , en : bool) -> crate :: LvResult < () > {
unsafe {
lvgl_sys :: lv_label_set_recolor (self . core . raw () . as_mut () , en) ;
}
Ok (())
}
void lv_label_set_recolor(lv_obj_t * obj, bool en);
Metadata
Metadata
Assignees
Labels
No labels