From 60c6892cd1007576657f1d5cfe88cce27b693fe6 Mon Sep 17 00:00:00 2001
From: C47D <carlos.santiago.diaz@gmail.com>
Date: Sun, 24 Nov 2024 14:13:03 -0600
Subject: [PATCH] Fix button_click example

---
 examples/button_click.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/button_click.rs b/examples/button_click.rs
index 388772ae..30c0a4c1 100644
--- a/examples/button_click.rs
+++ b/examples/button_click.rs
@@ -45,11 +45,11 @@ fn main() -> Result<(), LvError> {
 
     let mut screen_style = Style::default();
     screen_style.set_bg_color(Color::from_rgb((0, 0, 0)));
-    screen.add_style(Part::Main, &mut screen_style)?;
+    screen.add_style(Part::Main, &mut screen_style);
     // Create the button
     let mut button = Btn::create(&mut screen)?;
-    button.set_align(Align::LeftMid, 30, 0)?;
-    button.set_size(180, 80)?;
+    button.set_align(Align::LeftMid, 30, 0);
+    button.set_size(180, 80);
     let mut btn_lbl = Label::create(&mut button)?;
     btn_lbl.set_text(CString::new("Click me!").unwrap().as_c_str())?;