commit 249e166a95c68779a78783b50b8fd921d58aa341
parent 3f9d0300468d72831a73ccca753e44367e7128bc
Author: William Casarin <jb55@jb55.com>
Date: Sun, 3 Aug 2025 10:44:07 -0700
remove explicit loop continue
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/notedeck_ui/src/note/contents.rs b/crates/notedeck_ui/src/note/contents.rs
@@ -181,7 +181,7 @@ pub fn render_note_contents<'a>(
return;
};
- 'block_loop: for block in blocks.iter(note) {
+ for block in blocks.iter(note) {
match block.blocktype() {
BlockType::MentionBech32 => match block.as_mention().unwrap() {
Mention::Profile(profile) => {
@@ -231,7 +231,7 @@ pub fn render_note_contents<'a>(
BlockType::Hashtag => {
if block.as_str().trim().is_empty() {
- continue 'block_loop;
+ continue;
}
let resp = ui
.colored_label(
@@ -264,7 +264,7 @@ pub fn render_note_contents<'a>(
if hide_media || !found_supported() {
if block.as_str().trim().is_empty() {
- continue 'block_loop;
+ continue;
}
ui.add(Hyperlink::from_label_and_url(
RichText::new(block.as_str())
@@ -296,7 +296,7 @@ pub fn render_note_contents<'a>(
block_str
};
if block_str.trim().is_empty() {
- continue 'block_loop;
+ continue;
}
if options.contains(NoteOptions::ScrambleText) {
ui.add(