diff options
| author | Vincent Prouillet | 2017-01-18 22:43:34 +0900 |
|---|---|---|
| committer | Vincent Prouillet | 2017-01-19 13:38:47 +0900 |
| commit | 696e4273173033a6b1d488416c5433d9c49eb8e9 (patch) | |
| tree | 8c6e1776e627412f16d1116a732b23561c819a6f /validator_derive/tests/run-pass | |
| parent | 1fd1b3d708a2737c2a678df8a37e719c29c754bc (diff) | |
| download | validator-696e4273173033a6b1d488416c5433d9c49eb8e9.tar.bz2 | |
Validator works for Option<&
Diffstat (limited to 'validator_derive/tests/run-pass')
| -rw-r--r-- | validator_derive/tests/run-pass/lifetime.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/validator_derive/tests/run-pass/lifetime.rs b/validator_derive/tests/run-pass/lifetime.rs index 8547a1a..b3de940 100644 --- a/validator_derive/tests/run-pass/lifetime.rs +++ b/validator_derive/tests/run-pass/lifetime.rs @@ -8,12 +8,8 @@ use validator::Validate; struct Test<'a> { #[validate(length(min = 1))] s: &'a str, - #[validate(length(min = 1, max = 2))] - s2: &'a str, - #[validate(length(equal = 1))] - s3: &'a str, - #[validate(length(max = 1))] - s4: &'a str, + #[validate(length(min = 1))] + s2: Option<&'a str>, } fn main() {} |
