Skip to content

Commit

Permalink
Merge pull request #168 from lumeohq/dmitry/fix-warnings
Browse files Browse the repository at this point in the history
Remove useless test
  • Loading branch information
DmitrySamoylov authored Sep 18, 2024
2 parents 80050d9 + c8906e3 commit d945dca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions xsd-parser/src/generator/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand Down
4 changes: 0 additions & 4 deletions xsd-parser/tests/simple_type/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ fn deserialization_works() {

use xsd_macro_utils::*;

trait Validate {
fn validate(&self) -> Result<(), String>;
}

include!("expected.rs");
}

Expand Down

0 comments on commit d945dca

Please sign in to comment.