Skip to content

Commit c4fc1a5

Browse files
committed
fix up comment
1 parent 92888ed commit c4fc1a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/validators/enum_.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ impl<T: EnumValidateValue> Validator for EnumValidator<T> {
123123
if let Some(v) = T::validate_value(py, input, &self.lookup, strict)? {
124124
return Ok(v);
125125
} else if let Ok(res) = class.as_unbound().call1(py, (input.as_python(),)) {
126-
// as a last result, just try to initialize the enum with the input
127126
return Ok(res);
128127
} else if let Some(ref missing) = self.missing {
129128
let enum_value = missing.bind(py).call1((input.to_object(py),)).map_err(|_| {

0 commit comments

Comments
 (0)