summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/pick_list.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/pick_list.rs b/native/src/widget/pick_list.rs
index 21c0c153..4f4e751e 100644
--- a/native/src/widget/pick_list.rs
+++ b/native/src/widget/pick_list.rs
@@ -285,7 +285,7 @@ where
layout.bounds(),
cursor_position,
self.selected.as_ref().map(ToString::to_string),
- self.placeholder.clone(),
+ self.placeholder.as_ref().map(String::as_str),
self.padding,
self.text_size.unwrap_or(renderer.default_size()),
self.font,
@@ -346,7 +346,7 @@ pub trait Renderer: text::Renderer + menu::Renderer {
bounds: Rectangle,
cursor_position: Point,
selected: Option<String>,
- placeholder: Option<String>,
+ placeholder: Option<&str>,
padding: Padding,
text_size: u16,
font: Self::Font,