mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +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
|
||||
T: NameOwner + VisibilityOwner,
|
||||
{
|
||||
let mut buf =
|
||||
node.visibility().map(|v| format!("{} ", v.syntax().text())).unwrap_or_default();
|
||||
let mut buf = node.visibility().map(|v| format!("{} ", v.syntax().text())).unwrap_or_default();
|
||||
buf.push_str(label);
|
||||
buf.push_str(node.name()?.text().as_str());
|
||||
Some(buf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue