Skip to content

Commit c9f4464

Browse files
committed
fix for clippy
1 parent f00f895 commit c9f4464

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ mod home_assistant_handler {
637637
slint::TimerMode::Repeated,
638638
std::time::Duration::from_millis(200),
639639
move || {
640-
if rx.try_recv().is_ok() {
641-
if let Some(window) = weak.upgrade() {
642-
window.invoke_close_hass_remote();
643-
}
640+
if rx.try_recv().is_ok()
641+
&& let Some(window) = weak.upgrade()
642+
{
643+
window.invoke_close_hass_remote();
644644
}
645645
},
646646
);

0 commit comments

Comments
 (0)