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:
parent
c43eafbf9a
commit
23c5fc1b03
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ impl HoverState {
|
||||||
pub fn focused(&self, cx: &mut ViewContext<Editor>) -> bool {
|
pub fn focused(&self, cx: &mut ViewContext<Editor>) -> bool {
|
||||||
let mut hover_popover_is_focused = false;
|
let mut hover_popover_is_focused = false;
|
||||||
for info_popover in &self.info_popovers {
|
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) {
|
if markdown_view.focus_handle(cx).is_focused(cx) {
|
||||||
hover_popover_is_focused = true;
|
hover_popover_is_focused = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue