Skip to content

Commit e696633

Browse files
committed
Fix clippy::init_numbered_fields
1 parent 4d1cbc1 commit e696633

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/test/type_flags.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ fn placeholder_ty_flags_correct() {
1515
#[test]
1616
fn opaque_ty_flags_correct() {
1717
let opaque_ty = TyKind::Alias(chalk_ir::AliasTy::Opaque(chalk_ir::OpaqueTy {
18-
opaque_ty_id: chalk_ir::OpaqueTyId {
19-
0: chalk_integration::interner::RawId { index: 0 },
20-
},
18+
opaque_ty_id: chalk_ir::OpaqueTyId(chalk_integration::interner::RawId { index: 0 }),
2119
substitution: chalk_ir::Substitution::from_iter(
2220
ChalkIr,
2321
Some(
@@ -48,9 +46,7 @@ fn opaque_ty_flags_correct() {
4846
fn dyn_ty_flags_correct() {
4947
let internal_ty = TyKind::Scalar(chalk_ir::Scalar::Bool).intern(ChalkIr);
5048
let projection_ty = chalk_ir::ProjectionTy {
51-
associated_ty_id: chalk_ir::AssocTypeId {
52-
0: chalk_integration::interner::RawId { index: 0 },
53-
},
49+
associated_ty_id: chalk_ir::AssocTypeId(chalk_integration::interner::RawId { index: 0 }),
5450
substitution: empty_substitution!(),
5551
};
5652
let bounds = chalk_ir::Binders::<chalk_ir::QuantifiedWhereClauses<ChalkIr>>::empty(
@@ -110,9 +106,7 @@ fn static_and_bound_lifetimes() {
110106
);
111107

112108
let ty = TyKind::Adt(
113-
chalk_ir::AdtId {
114-
0: chalk_integration::interner::RawId { index: 0 },
115-
},
109+
chalk_ir::AdtId(chalk_integration::interner::RawId { index: 0 }),
116110
substitutions,
117111
)
118112
.intern(ChalkIr);

0 commit comments

Comments
 (0)