File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -186,15 +186,11 @@ impl Validator for DataclassArgsValidator {
186
186
} ,
187
187
Ok ( None ) => continue ,
188
188
Err ( ValError :: Omit ) => continue ,
189
- Err ( ValError :: LineErrors ( line_errors) ) => {
190
- for err in line_errors {
191
- // Note: this will always use the field name even if there is an alias
192
- // However, we don't mind so much because this error can only happen if the
193
- // default value fails validation, which is arguably a developer error.
194
- // We could try to "fix" this in the future if desired.
195
- errors. push( err) ;
196
- }
197
- }
189
+ // Note: this will always use the field name even if there is an alias
190
+ // However, we don't mind so much because this error can only happen if the
191
+ // default value fails validation, which is arguably a developer error.
192
+ // We could try to "fix" this in the future if desired.
193
+ Err ( ValError :: LineErrors ( line_errors) ) => errors. extend( line_errors) ,
198
194
Err ( err) => return Err ( err) ,
199
195
} ;
200
196
continue ;
You can’t perform that action at this time.
0 commit comments