Remove lifetime bound for Text in markdown::paragraph
This commit is contained in:
parent
51e44e036a
commit
42f6018487
1 changed files with 2 additions and 2 deletions
|
|
@ -1099,7 +1099,7 @@ where
|
|||
/// Displays a paragraph using the default look.
|
||||
pub fn paragraph<'a, Message, Theme, Renderer>(
|
||||
settings: Settings,
|
||||
text: &'a Text,
|
||||
text: &Text,
|
||||
on_link_click: impl Fn(Url) -> Message + 'a,
|
||||
) -> Element<'a, Message, Theme, Renderer>
|
||||
where
|
||||
|
|
@ -1264,7 +1264,7 @@ where
|
|||
fn paragraph(
|
||||
&self,
|
||||
settings: Settings,
|
||||
text: &'a Text,
|
||||
text: &Text,
|
||||
) -> Element<'a, Message, Theme, Renderer> {
|
||||
paragraph(settings, text, Self::on_link_click)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue