Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/display.rs')
| -rw-r--r-- | crates/hir/src/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/display.rs b/crates/hir/src/display.rs index 0fa2d80346..23c6b078b9 100644 --- a/crates/hir/src/display.rs +++ b/crates/hir/src/display.rs @@ -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' })?; |