style(ribbon): cargo fmt after PR213 merge

PR #213 introduced rustfmt drift in tip_style / swatch indentation and an
inline if-expression in two previously fmt-clean files. Format pass only;
no behaviour change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-06-29 01:19:05 +03:00
commit f88c2f8327
2 changed files with 26 additions and 16 deletions

View file

@ -871,9 +871,11 @@ impl Ribbon {
button(
row![
checkmark,
text(name.clone())
.size(11)
.color(if is_sel { LABEL_ON } else { LABEL_OFF }),
text(name.clone()).size(11).color(if is_sel {
LABEL_ON
} else {
LABEL_OFF
}),
]
.spacing(4)
.align_y(iced::Center),

View file

@ -798,7 +798,11 @@ pub(super) fn render_large<'a>(
border: Border {
radius: 2.0.into(),
width: 1.0,
color: if is_open { COMBO_ACTIVE_BORDER } else { COMBO_BORDER },
color: if is_open {
COMBO_ACTIVE_BORDER
} else {
COMBO_BORDER
},
},
..Default::default()
})
@ -867,7 +871,11 @@ pub(super) fn render_large<'a>(
border: Border {
radius: 3.0.into(),
width: 1.0,
color: if is_open { COMBO_ACTIVE_BORDER } else { COMBO_BORDER },
color: if is_open {
COMBO_ACTIVE_BORDER
} else {
COMBO_BORDER
},
},
..Default::default()
})