@@ -107,19 +107,31 @@ impl IteratorOutput {
107
107
108
108
fn validate_output_from_tables ( tables : tskit:: TableCollection ) {
109
109
let tables_output = IteratorOutput :: new_from_tables ( & tables) ;
110
- let access_output = IteratorOutput :: new_from_table_access ( & tables) ;
111
- assert_eq ! ( tables_output, access_output) ;
112
- let iteration_output = IteratorOutput :: new_from_table_iteration ( & tables) ;
113
- assert_eq ! ( tables_output, iteration_output) ;
114
- let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( & tables) ;
115
- assert_eq ! ( tables_output, impl_syntax_output) ;
110
+ {
111
+ let access_output = IteratorOutput :: new_from_table_access ( & tables) ;
112
+ assert_eq ! ( tables_output, access_output) ;
113
+ }
114
+ {
115
+ let iteration_output = IteratorOutput :: new_from_table_iteration ( & tables) ;
116
+ assert_eq ! ( tables_output, iteration_output) ;
117
+ }
118
+ {
119
+ let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( & tables) ;
120
+ assert_eq ! ( tables_output, impl_syntax_output) ;
121
+ }
116
122
let boxed = Box :: new ( tables) ;
117
- let dynamic_output = IteratorOutput :: new_from_dyn ( & boxed) ;
118
- assert_eq ! ( tables_output, dynamic_output) ;
119
- let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( & boxed) ;
120
- assert_eq ! ( tables_output, impl_syntax_output) ;
121
- let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( boxed) ;
122
- assert_eq ! ( tables_output, impl_syntax_output) ;
123
+ {
124
+ let dynamic_output = IteratorOutput :: new_from_dyn ( & boxed) ;
125
+ assert_eq ! ( tables_output, dynamic_output) ;
126
+ }
127
+ {
128
+ let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( & boxed) ;
129
+ assert_eq ! ( tables_output, impl_syntax_output) ;
130
+ }
131
+ {
132
+ let impl_syntax_output = IteratorOutput :: new_from_table_access_impl_syntax ( boxed) ;
133
+ assert_eq ! ( tables_output, impl_syntax_output) ;
134
+ }
123
135
}
124
136
125
137
fn validate_output_from_table_ref ( tables : tskit:: TableCollection ) {
0 commit comments