diff --git a/src/main.rs b/src/main.rs index 47f72f6..931b562 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,7 +142,7 @@ impl Handler { let handler_msg_clone = handler.clone(); greeter.connect_show_message(move |_, msg, _| { handler_msg_clone - .borrow_mut() + .borrow() .msg_label .as_ref() .expect("no msg label") @@ -151,7 +151,7 @@ impl Handler { let handler_prmpt_clone = handler.clone(); greeter.connect_show_prompt(move |_, msg, _| { handler_prmpt_clone - .borrow_mut() + .borrow() .pmpt_label .as_ref() .expect("no msg label")