Skip to content

Commit

Permalink
Fix lint in screenshot example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Oct 18, 2023
1 parent e0233eb commit 54e6d2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/screenshot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 54e6d2b

Please sign in to comment.