From eb0ab75e873ca93430c177a00fd47d8937a86e2a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 25 Jul 2025 12:04:38 -0700 Subject: [PATCH] ui/wallet: small refactor to use return instead of break we don't need this weird break syntax when we're in a closure Signed-off-by: William Casarin --- crates/notedeck_columns/src/ui/wallet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/notedeck_columns/src/ui/wallet.rs b/crates/notedeck_columns/src/ui/wallet.rs index dfada567..1ae25a33 100644 --- a/crates/notedeck_columns/src/ui/wallet.rs +++ b/crates/notedeck_columns/src/ui/wallet.rs @@ -207,7 +207,7 @@ fn show_no_wallet( state: &mut WalletUIState, show_local_only: bool, ) -> Option { - ui.horizontal_wrapped(|ui| 's: { + ui.horizontal_wrapped(|ui| { let text_edit = egui::TextEdit::singleline(&mut state.buf) .hint_text( egui::RichText::new(tr!( @@ -226,7 +226,7 @@ fn show_no_wallet( ui.add(text_edit); let Some(error_msg) = &state.error_msg else { - break 's; + return; }; let error_str = match error_msg {