Resolve clippy warnings introduced this round

- AppearanceSettings derives Default instead of carrying a manual impl
  that's identical to the derived one.
- topbar::render_lock_or_search collapses the duplicated Search arms
  into a single fallback so clippy stops flagging identical blocks.
- command_overlay row helpers bundle id/title/hint/keys into a small
  CommandRowContent struct so render_row, render_row_with_glyph, and
  render_row_inner stay under the 7-arg threshold without losing any
  call-site clarity.
This commit is contained in:
2026-05-09 19:08:19 -04:00
parent 68e784daf8
commit 3856c2ea70
3 changed files with 34 additions and 40 deletions
+3 -5
View File
@@ -166,12 +166,10 @@ fn render_styled_url(active_tab: &BrowserTab) -> AnyElement {
}
fn render_lock_or_search(secure: bool, show_styled: bool) -> AnyElement {
let icon = if !show_styled {
IconName::Search
} else if secure {
IconName::Search
} else {
let icon = if show_styled && !secure {
IconName::Globe
} else {
IconName::Search
};
div()
.text_color(rgb(colors::INK_3))