Skip to content

Commit 2c3a04c

Browse files
Further simplification
Co-authored-by: David Hewitt <[email protected]>
1 parent f244156 commit 2c3a04c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/validators/dataclass.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ impl Validator for DataclassArgsValidator {
184184
// Default value exists, and passed validation if required
185185
set_item!(field, value);
186186
},
187-
Ok(None) => continue,
188-
Err(ValError::Omit) => continue,
187+
Ok(None) | Err(ValError::Omit) => continue,
189188
// Note: this will always use the field name even if there is an alias
190189
// However, we don't mind so much because this error can only happen if the
191190
// default value fails validation, which is arguably a developer error.

0 commit comments

Comments
 (0)