Render block elements

Co-Authored-By: Julia <julia@zed.dev>
This commit is contained in:
Antonio Scandurra 2023-11-14 16:03:06 +01:00
parent fc5ec47cc8
commit f9b9b7549f
3 changed files with 132 additions and 149 deletions

View file

@ -9,8 +9,10 @@ pub struct TextTooltip {
}
impl TextTooltip {
pub fn new(str: SharedString) -> Self {
Self { title: str }
pub fn new(title: impl Into<SharedString>) -> Self {
Self {
title: title.into(),
}
}
}