mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 10:58:02 +00:00
Split assoc items out of trait_data/impl_data queries
This commit is contained in:
parent
185f9deb45
commit
12f54eec27
34 changed files with 446 additions and 397 deletions
|
|
@ -82,7 +82,7 @@ pub(super) fn print_body_hir(
|
|||
p.buf.push_str(", ");
|
||||
});
|
||||
// remove the last ", " in param list
|
||||
if body.params.len() > 0 {
|
||||
if !body.params.is_empty() {
|
||||
p.buf.truncate(p.buf.len() - 2);
|
||||
}
|
||||
p.buf.push(')');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue