summaryrefslogtreecommitdiffstats
path: root/examples/pure/component/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pure/component/src/main.rs')
-rw-r--r--examples/pure/component/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pure/component/src/main.rs b/examples/pure/component/src/main.rs
index 64935afd..db22d019 100644
--- a/examples/pure/component/src/main.rs
+++ b/examples/pure/component/src/main.rs
@@ -143,8 +143,7 @@ mod numeric_input {
self.value
.as_ref()
.map(u32::to_string)
- .as_ref()
- .map(String::as_str)
+ .as_deref()
.unwrap_or(""),
Event::InputChanged,
)