Skip to content

Commit d945dca

Browse files
Merge pull request #168 from lumeohq/dmitry/fix-warnings
Remove useless test
2 parents 80050d9 + c8906e3 commit d945dca

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

xsd-parser/src/generator/validator.rs

-10
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,6 @@ fn gen_min_length_validation(value: &str, name: &str) -> String {
143143
mod test {
144144
use super::*;
145145

146-
#[test]
147-
fn test_validator_for_tuple_struct() {
148-
struct Foo(());
149-
impl Validate for Foo {
150-
fn validate(&self) -> Result<(), String> {
151-
Err("Error".to_owned())
152-
}
153-
}
154-
}
155-
156146
#[test]
157147
fn test_gen_max_exclusive_validation() {
158148
let expected = r#"

xsd-parser/tests/simple_type/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ fn deserialization_works() {
77

88
use xsd_macro_utils::*;
99

10-
trait Validate {
11-
fn validate(&self) -> Result<(), String>;
12-
}
13-
1410
include!("expected.rs");
1511
}
1612

0 commit comments

Comments
 (0)