@@ -77,8 +77,10 @@ fn only_sev_enabled_subnets_consist_of_sev_enabled_nodes() {
7777 check_subnet_invariants ( & snapshot) . unwrap ( ) ;
7878
7979 // a non SEV-enabled subnet with some nodes with and some without chip IDs is compliant
80- let mut test_node_record = NodeRecord :: default ( ) ;
81- test_node_record. chip_id = Some ( "a chip id" . into ( ) ) ;
80+ let test_node_record = NodeRecord {
81+ chip_id : Some ( "a chip id" . into ( ) ) ,
82+ ..Default :: default ( )
83+ } ;
8284 snapshot. insert (
8385 make_node_record_key ( test_node_id) . into_bytes ( ) ,
8486 test_node_record. encode_to_vec ( ) ,
@@ -94,8 +96,10 @@ fn only_sev_enabled_subnets_consist_of_sev_enabled_nodes() {
9496 make_subnet_record_key ( test_subnet_id) . into_bytes ( ) ,
9597 test_subnet_record. encode_to_vec ( ) ,
9698 ) ;
97- let mut test_node_record = NodeRecord :: default ( ) ;
98- test_node_record. chip_id = None ;
99+ let test_node_record = NodeRecord {
100+ chip_id : None ,
101+ ..Default :: default ( )
102+ } ;
99103 snapshot. insert (
100104 make_node_record_key ( test_node_id) . into_bytes ( ) ,
101105 test_node_record. encode_to_vec ( ) ,
@@ -129,8 +133,10 @@ fn only_sev_enabled_subnets_consist_of_sev_enabled_nodes() {
129133 check_subnet_invariants ( & snapshot) . unwrap ( ) ;
130134
131135 // an SEV-enabled subnet with some nodes with and some without chip ID is NOT compliant
132- let mut test_node_record = NodeRecord :: default ( ) ;
133- test_node_record. chip_id = None ;
136+ let test_node_record = NodeRecord {
137+ chip_id : None ,
138+ ..Default :: default ( )
139+ } ;
134140 snapshot. insert (
135141 make_node_record_key ( test_node_id) . into_bytes ( ) ,
136142 test_node_record. encode_to_vec ( ) ,
@@ -200,7 +206,7 @@ fn setup_minimal_registry_snapshot_for_check_subnet_invariants(
200206 . collect ( ) ;
201207
202208 let test_subnet_record = SubnetRecord {
203- membership : membership ,
209+ membership,
204210 ..Default :: default ( )
205211 } ;
206212 snapshot. insert (
0 commit comments