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)
|
.height(Length::Fill)
|
||||||
.into(),
|
.into(),
|
||||||
self.error
|
self.error.as_ref().map_or_else(
|
||||||
.as_ref()
|
|
||||||
.map_or_else(
|
|
||||||
|| Element::from(widget::space()),
|
|| Element::from(widget::space()),
|
||||||
|error| widget::text(error).style(widget::text::danger).into(),
|
|error| widget::text(error).style(widget::text::danger).into(),
|
||||||
)
|
),
|
||||||
.into(),
|
|
||||||
])
|
])
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue