Merge pull request #2090 from nyurik/mapping
Chore: Apply clippy map transformations
This commit is contained in:
commit
582da10ae2
7 changed files with 10 additions and 15 deletions
|
|
@ -293,10 +293,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_or_else(String::new, ToString::to_string),
|
||||
)
|
||||
.on_input(move |text| {
|
||||
if text.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue