Refactor to use SharedString in more places (#23813)
Splitting this off from https://github.com/zed-industries/zed/pull/23808, per @maxdeviant's suggestion! Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan
parent
92a1cb893f
commit
33d1145c3f
@@ -499,7 +499,7 @@ impl SyntaxTreeToolbarItemView {
|
||||
|
||||
fn render_header(active_layer: &OwnedSyntaxLayer) -> ButtonLike {
|
||||
ButtonLike::new("syntax tree header")
|
||||
.child(Label::new(active_layer.language.name().0))
|
||||
.child(Label::new(active_layer.language.name()))
|
||||
.child(Label::new(format_node_range(active_layer.node())))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user