From f8c71a20a99568b2ddd0e07ac021d37ce2933856 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 4 Feb 2025 21:22:01 +0100 Subject: Rename `on_link_clicked` to `on_link_click` --- examples/changelog/src/main.rs | 2 +- examples/markdown/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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) } -- cgit