From b0db4805a8c7e2988e289f5b61f77d5c3070a6ea Mon Sep 17 00:00:00 2001 From: raatty Date: Mon, 27 Apr 2020 13:11:34 +1200 Subject: [PATCH] possibly unnessessary borrow muts removed --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")