diff options
author | 2024-07-28 13:59:11 +0200 | |
---|---|---|
committer | 2024-07-28 13:59:40 +0200 | |
commit | 2d69464846e6e1a7c59f78d894d8801ff82c5929 (patch) | |
tree | 20d61f94f8df9b6f90cebf901b171cf563216d39 /widget | |
parent | 2796a6bc974d847580ab23c6a5f58db994883ec5 (diff) | |
download | iced-2d69464846e6e1a7c59f78d894d8801ff82c5929.tar.gz iced-2d69464846e6e1a7c59f78d894d8801ff82c5929.tar.bz2 iced-2d69464846e6e1a7c59f78d894d8801ff82c5929.zip |
Make `markdown::parse` take a `Palette` value
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/markdown.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index c5eeaea9..9cd4a62f 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -35,10 +35,10 @@ pub enum Item { } /// Parse the given Markdown content. -pub fn parse<'a>( - markdown: &'a str, - palette: &'a theme::Palette, -) -> impl Iterator<Item = Item> + 'a { +pub fn parse( + markdown: &str, + palette: theme::Palette, +) -> impl Iterator<Item = Item> + '_ { struct List { start: Option<u64>, items: Vec<Vec<Item>>, |