Fix lint in screenshot example

This commit is contained in:
Héctor Ramón Jiménez 2023-10-18 17:49:19 -05:00
parent e0233ebc3c
commit 54e6d2b5fa
No known key found for this signature in database
GPG key ID: 0BF4EC06CD8E5686

View file

@ -298,10 +298,7 @@ fn numeric_input(
) -> Element<'_, Option<u32>> {
text_input(
placeholder,
&value
.as_ref()
.map(ToString::to_string)
.unwrap_or_else(String::new),
&value.as_ref().map(ToString::to_string).unwrap_or_default(),
)
.on_input(move |text| {
if text.is_empty() {