chore: Use explicit if let instead of for .. in option (#15086)

Fixes one clippy violation from 1.80 (that's due for release tomorrow).

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz authored and GitHub committed 2024-07-24 16:19:29 +02:00
1 parent 0bf89b1047
commit cda4ebddea
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}