fix(lint): fold the sidebar click row lookup into the bounds let-chain — newer clippy (1.96) flags the nested if as collapsible_if and CI lints with -D warnings

Co-Authored-By: Claude <noreply@anthropic.com>
https://claude.ai/code/session_018zaP8vUfTAsrE38L6h6fw5
This commit is contained in:
Claude
2026-06-11 04:42:18 +00:00
parent ac3f8c04b6
commit 29f75dc19d
+2 -3
View File
@@ -476,10 +476,9 @@ fn sidebar_click_action(app: &App, mouse: MouseEvent) -> Option<String> {
.content_area
.y
.saturating_add(section.content_area.height)
&& let Some(row) = section.rows.iter().find(|row| row.row_y == mouse.row)
{
if let Some(row) = section.rows.iter().find(|row| row.row_y == mouse.row) {
return row.click_action.clone();
}
return row.click_action.clone();
}
}
None