Keats / validator

Simple validation for Rust structs
MIT License
1.91k stars 140 forks source link

Can't use static ref for Lazy<Regex>, how #297

Closed headironc closed 4 months ago

headironc commented 4 months ago
Screenshot 2024-03-05 at 10 59 53 Screenshot 2024-03-05 at 11 01 25
attila-lin commented 4 months ago

ref is unnecessary.

headironc commented 4 months ago
Screenshot 2024-03-05 at 21 43 21 Screenshot 2024-03-05 at 21 43 28

After upgrade this crate, this happened

Keats commented 4 months ago

See https://github.com/Keats/validator/blob/master/validator_derive_tests/tests/regex.rs for some examples of regex

headironc commented 4 months ago

Thanks