summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Will Lynas <43895423+will-lynas@users.noreply.github.com>2025-01-16 15:49:35 +0000
committerLibravatar Will Lynas <43895423+will-lynas@users.noreply.github.com>2025-01-16 15:49:35 +0000
commit31f53ecd69fda0043d33e46158dc37591f0a8e9d (patch)
tree04bda2e54458fa5eff089db6c2c2e2f397d25db6 /examples
parent2b920235b528590694930da542e77db973d82be7 (diff)
downloadiced-31f53ecd69fda0043d33e46158dc37591f0a8e9d.tar.gz
iced-31f53ecd69fda0043d33e46158dc37591f0a8e9d.tar.bz2
iced-31f53ecd69fda0043d33e46158dc37591f0a8e9d.zip
Remove a useless cast
Diffstat (limited to 'examples')
-rw-r--r--examples/the_matrix/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/the_matrix/src/main.rs b/examples/the_matrix/src/main.rs
index 0ed52dda..c6b20ece 100644
--- a/examples/the_matrix/src/main.rs
+++ b/examples/the_matrix/src/main.rs
@@ -36,7 +36,7 @@ impl TheMatrix {
}
fn view(&self) -> Element<Message> {
- canvas(self as &Self).width(Fill).height(Fill).into()
+ canvas(self).width(Fill).height(Fill).into()
}
fn subscription(&self) -> Subscription<Message> {