chore: support Rust 1.75 (#4246)

* chore: fix wanrings

* chore: update rust version
This commit is contained in:
Nathan.fooo
2023-12-30 01:22:06 +08:00
committed by GitHub
parent 206ccb2c43
commit 50694bb589
31 changed files with 42 additions and 64 deletions

View File

@ -1,6 +1,6 @@
pub(crate) fn invalid_email_test_case() -> Vec<String> {
// https://gist.github.com/cjaoude/fd9910626629b53c4d25
vec![
[
"annie@",
"annie@gmail@",
"#@%^%#$@#$@#.com",
@ -11,14 +11,6 @@ pub(crate) fn invalid_email_test_case() -> Vec<String> {
"email@-example.com",
"email@example..com",
"あいうえお@example.com",
/* The following email is valid according to the validate_email function return
* ".email@example.com",
* "email.@example.com",
* "email..email@example.com",
* "email@example",
* "email@example.web",
* "email@111.222.333.44444",
* "Abc..123@example.com", */
]
.iter()
.map(|s| s.to_string())
@ -26,7 +18,7 @@ pub(crate) fn invalid_email_test_case() -> Vec<String> {
}
pub(crate) fn invalid_password_test_case() -> Vec<String> {
vec!["123456", "1234".repeat(100).as_str()]
["123456", "1234".repeat(100).as_str()]
.iter()
.map(|s| s.to_string())
.collect::<Vec<_>>()