We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f244156 commit 2c3a04cCopy full SHA for 2c3a04c
src/validators/dataclass.rs
@@ -184,8 +184,7 @@ impl Validator for DataclassArgsValidator {
184
// Default value exists, and passed validation if required
185
set_item!(field, value);
186
},
187
- Ok(None) => continue,
188
- Err(ValError::Omit) => continue,
+ Ok(None) | Err(ValError::Omit) => continue,
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.
0 commit comments