Forms · Select: rustfmt's wrap for the label's when_some, so CI's fmt check passes

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 09:46:42 -04:00
1 parent 8658999903
commit 47caebdd36
1 file changed
+3 -1
+3 -1
View File
@@ -337,7 +337,9 @@ impl RenderOnce for Select {
)
.role(Role::ComboBox)
.aria_placeholder(self.placeholder.clone())
.when_some(self.label.clone(), |trigger, label| trigger.aria_label(label))
.when_some(self.label.clone(), |trigger, label| {
trigger.aria_label(label)
})
.when_some(shown.as_ref(), |trigger, choice| {
trigger.aria_value(choice.label.clone())
})