mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
update for review
This commit is contained in:
parent
2e87f31fe9
commit
dba67b46a1
10 changed files with 65 additions and 39 deletions
|
@ -598,7 +598,7 @@ impl HirDisplay for Trait {
|
|||
|
||||
let assoc_items = self.items(f.db);
|
||||
let assoc_items_size = assoc_items.len();
|
||||
let max_display_size = f.max_size.unwrap_or(assoc_items_size);
|
||||
let limited_size = f.limited_size.unwrap_or(assoc_items_size);
|
||||
if assoc_items.is_empty() {
|
||||
f.write_str(" {}")?;
|
||||
} else {
|
||||
|
@ -617,7 +617,7 @@ impl HirDisplay for Trait {
|
|||
}
|
||||
};
|
||||
f.write_str(",\n")?;
|
||||
if index + 1 == max_display_size && index + 1 != assoc_items_size {
|
||||
if index + 1 == limited_size && index + 1 != assoc_items_size {
|
||||
f.write_str(" ...\n")?;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue