Skip to content

Commit dcd4abd

Browse files
authored
Merge pull request iced-rs#2731 from will-lynas/remove-cast
Remove a cast
2 parents 2b92023 + 31f53ec commit dcd4abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/the_matrix/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl TheMatrix {
3636
}
3737

3838
fn view(&self) -> Element<Message> {
39-
canvas(self as &Self).width(Fill).height(Fill).into()
39+
canvas(self).width(Fill).height(Fill).into()
4040
}
4141

4242
fn subscription(&self) -> Subscription<Message> {

0 commit comments

Comments
 (0)