refactor: apply clippy lint

This commit is contained in:
electria 2026-08-09 14:19:36 -07:00
commit 05c5f7d37a
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -148,13 +148,10 @@ impl State {
)
.height(Length::Fill)
.into(),
self.error
.as_ref()
.map_or_else(
|| Element::from(widget::space()),
|error| widget::text(error).style(widget::text::danger).into(),
)
.into(),
self.error.as_ref().map_or_else(
|| Element::from(widget::space()),
|error| widget::text(error).style(widget::text::danger).into(),
),
])
.into()
}