Fix lint in screenshot example
This commit is contained in:
parent
e0233ebc3c
commit
54e6d2b5fa
1 changed files with 1 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue