diff options
author | 2025-02-04 21:22:01 +0100 | |
---|---|---|
committer | 2025-02-04 21:22:01 +0100 | |
commit | f8c71a20a99568b2ddd0e07ac021d37ce2933856 (patch) | |
tree | bdf43cb3b92295e58ab892a4a431dd476644da7f /examples | |
parent | e8020f3eaf3baec2b41847f6250d8554136e8d89 (diff) | |
download | iced-f8c71a20a99568b2ddd0e07ac021d37ce2933856.tar.gz iced-f8c71a20a99568b2ddd0e07ac021d37ce2933856.tar.bz2 iced-f8c71a20a99568b2ddd0e07ac021d37ce2933856.zip |
Rename `on_link_clicked` to `on_link_click`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/changelog/src/main.rs | 2 | ||||
-rw-r--r-- | examples/markdown/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/changelog/src/main.rs b/examples/changelog/src/main.rs index f3b9894f..a1d0d799 100644 --- a/examples/changelog/src/main.rs +++ b/examples/changelog/src/main.rs @@ -276,7 +276,7 @@ impl Generator { ..Font::default() }), ] - .on_link_clicked(Message::OpenPullRequest) + .on_link_click(Message::OpenPullRequest) .font(Font::MONOSPACE); let description = diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index 6a881288..20957bcd 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -265,7 +265,7 @@ struct CustomViewer<'a> { } impl<'a> markdown::Viewer<'a, Message> for CustomViewer<'a> { - fn on_link_clicked(url: markdown::Url) -> Message { + fn on_link_click(url: markdown::Url) -> Message { Message::LinkClicked(url) } |