summaryrefslogtreecommitdiffstats
path: root/examples/tour
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-04-02 09:42:50 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-02 09:42:50 +0200
commit6c75836f123eba909154ce517299c3ffcd21b25b (patch)
tree46d3f1b92efcc3b815662c23aed292dae722366d /examples/tour
parentc30b4b0a1c9b191bcb65ae1732581b5c96b8bcfe (diff)
parent488cac714896002791f3c7b9a99181310c1d1b5c (diff)
downloadiced-6c75836f123eba909154ce517299c3ffcd21b25b.tar.gz
iced-6c75836f123eba909154ce517299c3ffcd21b25b.tar.bz2
iced-6c75836f123eba909154ce517299c3ffcd21b25b.zip
Merge pull request #2363 from iced-rs/specialize-text-helper
Specialize `widget::text` helper
Diffstat (limited to 'examples/tour')
-rw-r--r--examples/tour/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index a88c0dba..e3a2ca87 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -357,7 +357,7 @@ impl<'a> Step {
.into()
}
- fn container(title: &str) -> Column<'a, StepMessage> {
+ fn container(title: &str) -> Column<'_, StepMessage> {
column![text(title).size(50)].spacing(20)
}
@@ -589,7 +589,7 @@ impl<'a> Step {
value: &str,
is_secure: bool,
is_showing_icon: bool,
- ) -> Column<'a, StepMessage> {
+ ) -> Column<'_, StepMessage> {
let mut text_input = text_input("Type something to continue...", value)
.on_input(StepMessage::InputChanged)
.padding(10)
@@ -674,7 +674,7 @@ fn ferris<'a>(
.center_x()
}
-fn padded_button<'a, Message: Clone>(label: &str) -> Button<'a, Message> {
+fn padded_button<Message: Clone>(label: &str) -> Button<'_, Message> {
button(text(label)).padding([12, 24])
}