review update

This commit is contained in:
Young-Flash 2024-03-23 08:42:45 +08:00
parent a89e417ce5
commit ba8c9810aa
2 changed files with 3 additions and 1 deletions

View file

@ -185,8 +185,8 @@ impl HirDisplay for Struct {
write_where_clause(def_id, f)?;
}
StructKind::Record => {
let has_where_clause = write_where_clause(def_id, f)?;
if let Some(limit) = f.entity_limit {
let has_where_clause = write_where_clause(def_id, f)?;
let fields = self.fields(f.db);
let count = fields.len().min(limit);
f.write_char(if !has_where_clause { ' ' } else { '\n' })?;