Render block elements
Co-Authored-By: Julia <julia@zed.dev>
This commit is contained in:
parent
fc5ec47cc8
commit
f9b9b7549f
3 changed files with 132 additions and 149 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue