mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Formating
This commit is contained in:
parent
e91bf0bba4
commit
9ded8d2eab
1 changed files with 1 additions and 2 deletions
|
@ -84,8 +84,7 @@ fn short_label_from_node<T>(node: &T, label: &str) -> Option<String>
|
||||||
where
|
where
|
||||||
T: NameOwner + VisibilityOwner,
|
T: NameOwner + VisibilityOwner,
|
||||||
{
|
{
|
||||||
let mut buf =
|
let mut buf = node.visibility().map(|v| format!("{} ", v.syntax().text())).unwrap_or_default();
|
||||||
node.visibility().map(|v| format!("{} ", v.syntax().text())).unwrap_or_default();
|
|
||||||
buf.push_str(label);
|
buf.push_str(label);
|
||||||
buf.push_str(node.name()?.text().as_str());
|
buf.push_str(node.name()?.text().as_str());
|
||||||
Some(buf)
|
Some(buf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue