refactor: apply clippy lint
This commit is contained in:
parent
d6549939a8
commit
05c5f7d37a
1 changed files with 4 additions and 7 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue