diff --git a/examples/arc.rs b/examples/arc.rs index ae01b8fb..8e10b86a 100644 --- a/examples/arc.rs +++ b/examples/arc.rs @@ -52,23 +52,23 @@ fn main() -> Result<(), LvError> { let mut screen_style = Style::default(); screen_style.set_bg_color(Color::from_rgb((255, 255, 255))); screen_style.set_radius(0); - screen.add_style(Part::Main, &mut screen_style)?; + screen.add_style(Part::Main, &mut screen_style); // Create the arc object let mut arc = Arc::create(&mut screen)?; - arc.set_size(150, 150)?; - arc.set_align(Align::Center, 0, 10)?; - arc.set_start_angle(135)?; - arc.set_end_angle(135)?; + arc.set_size(150, 150); + arc.set_align(Align::Center, 0, 10); + arc.set_start_angle(135); + arc.set_end_angle(135); let mut loading_lbl = Label::create(&mut screen)?; loading_lbl.set_text(CString::new("Loading...").unwrap().as_c_str())?; - loading_lbl.set_align(Align::OutTopMid, 0, 0)?; + loading_lbl.set_align(Align::OutTopMid, 0, 0); //loading_lbl.set_label_align(LabelAlign::Center)?; let mut loading_style = Style::default(); loading_style.set_text_color(Color::from_rgb((0, 0, 0))); - loading_lbl.add_style(Part::Main, &mut loading_style)?; + loading_lbl.add_style(Part::Main, &mut loading_style); let mut angle = 0; let mut forward = true;