Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chore: Use explicit if let instead of for .. in option (#15086)
Piotr Osiewicz23c5fc1b03fc
diff --git a/crates/editor/src/hover_popover.rs b/crates/editor/src/hover_popover.rsindex f8eb6967aeb..009dae8ce7f 100644--- a/crates/editor/src/hover_popover.rs+++ b/crates/editor/src/hover_popover.rs@@ -545,7 +545,7 @@ impl HoverState {pub fn focused(&self, cx: &mut ViewContext<Editor>) -> bool {let mut hover_popover_is_focused = false;for info_popover in &self.info_popovers {- for markdown_view in &info_popover.parsed_content {+ if let Some(markdown_view) = &info_popover.parsed_content {if markdown_view.focus_handle(cx).is_focused(cx) {hover_popover_is_focused = true;}