diff --git a/xsd-parser/src/generator/validator.rs b/xsd-parser/src/generator/validator.rs index fc6f93ce..3186aadb 100644 --- a/xsd-parser/src/generator/validator.rs +++ b/xsd-parser/src/generator/validator.rs @@ -143,16 +143,6 @@ fn gen_min_length_validation(value: &str, name: &str) -> String { mod test { use super::*; - #[test] - fn test_validator_for_tuple_struct() { - struct Foo(()); - impl Validate for Foo { - fn validate(&self) -> Result<(), String> { - Err("Error".to_owned()) - } - } - } - #[test] fn test_gen_max_exclusive_validation() { let expected = r#" diff --git a/xsd-parser/tests/simple_type/mod.rs b/xsd-parser/tests/simple_type/mod.rs index a4843eeb..47832197 100644 --- a/xsd-parser/tests/simple_type/mod.rs +++ b/xsd-parser/tests/simple_type/mod.rs @@ -7,10 +7,6 @@ fn deserialization_works() { use xsd_macro_utils::*; - trait Validate { - fn validate(&self) -> Result<(), String>; - } - include!("expected.rs"); }