aboutsummaryrefslogtreecommitdiffstats
path: root/validator_derive/tests
diff options
context:
space:
mode:
authorSimon Sparks2018-07-27 10:02:04 +0100
committerVincent Prouillet2018-07-27 11:02:04 +0200
commitf4b11eaecb8fcc4798eb3a932a68c47ed802d96d (patch)
tree2ba683f8512308bfd10f3293f304bbee975ee8df /validator_derive/tests
parent889e7e7e7fad2a2156a46d8382558c6cfbf59628 (diff)
downloadvalidator-f4b11eaecb8fcc4798eb3a932a68c47ed802d96d.tar.bz2
Added support for validating Cow<'a, str> fields. (#56)
* Added support for validating Cow<'a, str> fields. Keats/validator#55 * Corrected error message comparison in compiler-fail/length test. Keats/validator#55
Diffstat (limited to 'validator_derive/tests')
-rw-r--r--validator_derive/tests/compile-fail/length/wrong_type.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/validator_derive/tests/compile-fail/length/wrong_type.rs b/validator_derive/tests/compile-fail/length/wrong_type.rs
index a9d53d4..3dd1fb0 100644
--- a/validator_derive/tests/compile-fail/length/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/length/wrong_type.rs
@@ -4,7 +4,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ ERROR: proc-macro derive panicked
-//~^^ HELP: Validator `length` can only be used on types `String`, `&str` or `Vec` but found `usize`
+//~^^ HELP: Validator `length` can only be used on types `String`, `&str`, Cow<'_,str> or `Vec` but found `usize`
struct Test {
#[validate(length())]
s: usize,