Merge pull request #2197 from zed-industries/label-text-cow
Changed label and text to be generic over static and owned strings
This commit is contained in:
commit
77c396a0ab
24 changed files with 60 additions and 72 deletions
|
@ -1438,7 +1438,7 @@ impl EditorElement {
|
|||
} else {
|
||||
let text_style = self.style.text.clone();
|
||||
Flex::row()
|
||||
.with_child(Label::new("…".to_string(), text_style).boxed())
|
||||
.with_child(Label::new("…", text_style).boxed())
|
||||
.with_children(jump_icon)
|
||||
.contained()
|
||||
.with_padding_left(gutter_padding)
|
||||
|
|
|
@ -529,7 +529,7 @@ impl Item for Editor {
|
|||
) -> ElementBox {
|
||||
Flex::row()
|
||||
.with_child(
|
||||
Label::new(self.title(cx).into(), style.label.clone())
|
||||
Label::new(self.title(cx).to_string(), style.label.clone())
|
||||
.aligned()
|
||||
.boxed(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue