Skip to content

[generated.rs] LvResult when C functions return void #190

Closed
@C47D

Description

@C47D

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions