From 7c0b4fb054a136dc033938ebd27b0d545573dba2 Mon Sep 17 00:00:00 2001 From: yassun7010 Date: Tue, 7 Jan 2025 09:17:08 +0900 Subject: [PATCH] chore: fix test cases. --- crates/serde_valid/tests/custom_test.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/serde_valid/tests/custom_test.rs b/crates/serde_valid/tests/custom_test.rs index 959d1fd..748b115 100644 --- a/crates/serde_valid/tests/custom_test.rs +++ b/crates/serde_valid/tests/custom_test.rs @@ -304,9 +304,7 @@ fn filed_custom_validation_use_self() { )) } } - _ => Err(serde_valid::validation::Error::Custom( - "Unknown pet type.".to_string(), - )), + _ => Ok(()), } }