summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pokedex/src/main.rs2
-rw-r--r--examples/scrollable/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs
index 0744d991..4fe2d07c 100644
--- a/examples/pokedex/src/main.rs
+++ b/examples/pokedex/src/main.rs
@@ -217,6 +217,6 @@ impl From<reqwest::Error> for Error {
}
}
-fn button<'a>(text: &'a str) -> widget::Button<'a, Message> {
+fn button(text: &str) -> widget::Button<'_, Message> {
widget::button(text).padding(10)
}
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs
index 405c8daf..c9c1be7c 100644
--- a/examples/scrollable/src/main.rs
+++ b/examples/scrollable/src/main.rs
@@ -85,7 +85,7 @@ impl Sandbox for ScrollableDemo {
.enumerate()
.map(|(i, variant)| {
let mut contents = column![
- variant.title.as_ref(),
+ variant.title,
button("Scroll to bottom",)
.width(Length::Fill)
.padding(10)