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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user