1
0
Fork 0

possibly unnessessary borrow muts removed

This commit is contained in:
raatty 2020-04-27 13:11:34 +12:00
parent e49db66883
commit b0db4805a8
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ impl Handler {
let handler_msg_clone = handler.clone(); let handler_msg_clone = handler.clone();
greeter.connect_show_message(move |_, msg, _| { greeter.connect_show_message(move |_, msg, _| {
handler_msg_clone handler_msg_clone
.borrow_mut() .borrow()
.msg_label .msg_label
.as_ref() .as_ref()
.expect("no msg label") .expect("no msg label")
@ -151,7 +151,7 @@ impl Handler {
let handler_prmpt_clone = handler.clone(); let handler_prmpt_clone = handler.clone();
greeter.connect_show_prompt(move |_, msg, _| { greeter.connect_show_prompt(move |_, msg, _| {
handler_prmpt_clone handler_prmpt_clone
.borrow_mut() .borrow()
.pmpt_label .pmpt_label
.as_ref() .as_ref()
.expect("no msg label") .expect("no msg label")