summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:59:54 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-27 06:59:54 +0200
commitc512d50e1987c0e098b64e0de9d1c6e7aa2eb0a9 (patch)
tree738a8be43e41b10c4d0a45fb1215fa76eb0baf16 /examples
parenteffa6881f725fdfd2087205737484726f3580a43 (diff)
downloadiced-c512d50e1987c0e098b64e0de9d1c6e7aa2eb0a9.tar.gz
iced-c512d50e1987c0e098b64e0de9d1c6e7aa2eb0a9.tar.bz2
iced-c512d50e1987c0e098b64e0de9d1c6e7aa2eb0a9.zip
Fix `clippy` lints
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)