Skip to content

Commit 9acf57c

Browse files
committed
Format code
1 parent 7303227 commit 9acf57c

File tree

1 file changed

+9
-7
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src

1 file changed

+9
-7
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/layout.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ use base_db::ra_salsa::Cycle;
66
use chalk_ir::{AdtId, FloatTy, IntTy, TyKind, UintTy};
77
use hir_def::{
88
layout::{
9-
BackendRepr, FieldsShape, Float, Integer, LayoutCalculator, LayoutCalculatorError, LayoutData,
10-
Primitive, ReprOptions, Scalar, Size, StructKind, TargetDataLayout, WrappingRange,
9+
BackendRepr, FieldsShape, Float, Integer, LayoutCalculator, LayoutCalculatorError,
10+
LayoutData, Primitive, ReprOptions, Scalar, Size, StructKind, TargetDataLayout,
11+
WrappingRange,
1112
},
1213
LocalFieldId, StructId,
1314
};
@@ -294,11 +295,12 @@ pub fn layout_of_ty_query(
294295
.checked_mul(count, dl)
295296
.ok_or(LayoutError::BadCalc(LayoutCalculatorError::SizeOverflow))?;
296297

297-
let backend_repr = if count != 0 && matches!(element.backend_repr, BackendRepr::Uninhabited) {
298-
BackendRepr::Uninhabited
299-
} else {
300-
BackendRepr::Memory { sized: true }
301-
};
298+
let backend_repr =
299+
if count != 0 && matches!(element.backend_repr, BackendRepr::Uninhabited) {
300+
BackendRepr::Uninhabited
301+
} else {
302+
BackendRepr::Memory { sized: true }
303+
};
302304

303305
let largest_niche = if count != 0 { element.largest_niche } else { None };
304306

0 commit comments

Comments
 (0)