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:
@@ -476,12 +476,11 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user