Skip to content

Commit 692da7a

Browse files
committed
fix: test.
1 parent 0f679e0 commit 692da7a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/serde_valid/tests/custom_test.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,7 @@ fn filed_custom_validation_complex_closure() {
322322
#[validate(custom = kind_validation)]
323323
kind: String,
324324

325-
#[validate(custom = |food| {
326-
if kind_validation(&self.kind).is_ok() {
327-
food_validation(&self.kind, food)
328-
} else {
329-
Ok(())
330-
}
331-
})]
325+
#[validate(custom = |food| food_validation(&self.kind, food))]
332326
food: String,
333327
}
334328

0 commit comments

Comments
 (0)