From 2d69464846e6e1a7c59f78d894d8801ff82c5929 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 28 Jul 2024 13:59:11 +0200 Subject: Make `markdown::parse` take a `Palette` value --- widget/src/markdown.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widget/src/markdown.rs') 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 + 'a { +pub fn parse( + markdown: &str, + palette: theme::Palette, +) -> impl Iterator + '_ { struct List { start: Option, items: Vec>, -- cgit