diff --git a/crates/yakui/examples/clear_textbox.rs b/crates/yakui/examples/clear_textbox.rs index d968395..85f569b 100644 --- a/crates/yakui/examples/clear_textbox.rs +++ b/crates/yakui/examples/clear_textbox.rs @@ -10,7 +10,7 @@ fn run() { clear.set(false); } - let res = textbox(&text.borrow()); + let res = textbox(text.borrow().clone()); if let Some(new_text) = res.into_inner().text { text.set(new_text); }