remove explicit loop continue
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -181,7 +181,7 @@ pub fn render_note_contents<'a>(
|
|||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
'block_loop: for block in blocks.iter(note) {
|
for block in blocks.iter(note) {
|
||||||
match block.blocktype() {
|
match block.blocktype() {
|
||||||
BlockType::MentionBech32 => match block.as_mention().unwrap() {
|
BlockType::MentionBech32 => match block.as_mention().unwrap() {
|
||||||
Mention::Profile(profile) => {
|
Mention::Profile(profile) => {
|
||||||
@@ -231,7 +231,7 @@ pub fn render_note_contents<'a>(
|
|||||||
|
|
||||||
BlockType::Hashtag => {
|
BlockType::Hashtag => {
|
||||||
if block.as_str().trim().is_empty() {
|
if block.as_str().trim().is_empty() {
|
||||||
continue 'block_loop;
|
continue;
|
||||||
}
|
}
|
||||||
let resp = ui
|
let resp = ui
|
||||||
.colored_label(
|
.colored_label(
|
||||||
@@ -264,7 +264,7 @@ pub fn render_note_contents<'a>(
|
|||||||
|
|
||||||
if hide_media || !found_supported() {
|
if hide_media || !found_supported() {
|
||||||
if block.as_str().trim().is_empty() {
|
if block.as_str().trim().is_empty() {
|
||||||
continue 'block_loop;
|
continue;
|
||||||
}
|
}
|
||||||
ui.add(Hyperlink::from_label_and_url(
|
ui.add(Hyperlink::from_label_and_url(
|
||||||
RichText::new(block.as_str())
|
RichText::new(block.as_str())
|
||||||
@@ -296,7 +296,7 @@ pub fn render_note_contents<'a>(
|
|||||||
block_str
|
block_str
|
||||||
};
|
};
|
||||||
if block_str.trim().is_empty() {
|
if block_str.trim().is_empty() {
|
||||||
continue 'block_loop;
|
continue;
|
||||||
}
|
}
|
||||||
if options.contains(NoteOptions::ScrambleText) {
|
if options.contains(NoteOptions::ScrambleText) {
|
||||||
ui.add(
|
ui.add(
|
||||||
|
|||||||
Reference in New Issue
Block a user