diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-12-08 20:40:10 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-02-05 14:43:01 +0100 |
| commit | 89fa86ab5bcfbca2f5e255fdb267a8ea9283d615 (patch) | |
| tree | 65307f801ed610a64d2bbc9f3a42511f6c630652 | |
| parent | docs: update changelog (diff) | |
| download | iced_selection-0.14.tar.gz | |
feat: prepare for release0.14
| -rw-r--r-- | Cargo.toml | 15 | ||||
| -rw-r--r-- | src/text/rich.rs | 8 |
2 files changed, 18 insertions, 5 deletions
@@ -8,10 +8,18 @@ license = "MIT" readme = "README.md" homepage = "https://sr.ht/~pml68/iced_selection" repository = "https://git.sr.ht/~pml68/iced_selection" -documentation = "https://iced-selection.pml68.dev" categories = ["gui"] keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.88" +exclude = [ + ".cargo/config.toml", + ".builds/*", + "docs/*", + ".gitignore", + ".gitattributes", + "examples", + "rustfmt.toml", +] [features] default = [] @@ -22,9 +30,10 @@ iced_widget.workspace = true unicode-segmentation.workspace = true [workspace.dependencies] -iced_widget = { git = "https://github.com/iced-rs/iced", branch = "master" } +iced_widget = "0.14" unicode-segmentation = "1.0" -iced = { git = "https://github.com/iced-rs/iced", branch = "master" } + +iced = "0.14" open = "5.3" [workspace] diff --git a/src/text/rich.rs b/src/text/rich.rs index e0f2a1c..5b43672 100644 --- a/src/text/rich.rs +++ b/src/text/rich.rs @@ -155,11 +155,15 @@ where /// Sets the message that will be produced when a link of the [`Rich`] text /// is clicked. + /// + /// If the spans of the [`Rich`] text contain no links, you may need to call + /// this method with `on_link_click(never)` in order for the compiler to infer + /// the proper `Link` generic type. pub fn on_link_click( mut self, - on_link_clicked: impl Fn(Link) -> Message + 'a, + on_link_click: impl Fn(Link) -> Message + 'a, ) -> Self { - self.on_link_click = Some(Box::new(on_link_clicked)); + self.on_link_click = Some(Box::new(on_link_click)); self } |
