Split assoc items out of trait_data/impl_data queries

This commit is contained in:
Lukas Wirth 2025-02-26 07:40:42 +01:00
parent 185f9deb45
commit 12f54eec27
34 changed files with 446 additions and 397 deletions

View file

@ -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(')');