diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-03-09 17:07:42 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-03-09 17:07:42 +0000 |
commit | d6a6bb4dd16365152c7745ab4260797a452060e5 (patch) | |
tree | 08379f9d40996d3013dee516f283222c04f1629c /src/auth.rs | |
parent | Merge pull request #265 from svenstaro/dependabot/cargo/structopt-0.3.11 (diff) | |
download | miniserve-d6a6bb4dd16365152c7745ab4260797a452060e5.tar.gz miniserve-d6a6bb4dd16365152c7745ab4260797a452060e5.zip |
Fix deprecated stuff
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/auth.rs b/src/auth.rs index 1c98c10..34c864c 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -168,7 +168,7 @@ fn build_unauthorized_response( #[cfg(test)] mod tests { use super::*; - use rstest::{rstest, rstest_parametrize, fixture}; + use rstest::{rstest, fixture}; use pretty_assertions::assert_eq; /// Return a hashing function corresponds to given name @@ -180,7 +180,7 @@ mod tests { } } - #[rstest_parametrize( + #[rstest( password, hash_method, hash, case("abc", "sha256", "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"), case("abc", "sha512", "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f"), @@ -209,7 +209,7 @@ mod tests { } } - #[rstest_parametrize( + #[rstest( should_pass, param_username, param_password, required_username, required_password, encrypt, case(true, "obi", "hello there", "obi", "hello there", "plain"), case(false, "obi", "hello there", "obi", "hi!", "plain"), @@ -254,7 +254,7 @@ mod tests { .collect() } - #[rstest_parametrize( + #[rstest( username, password, case("usr0", "pwd0"), case("usr1", "pwd1"), @@ -288,7 +288,7 @@ mod tests { ), false); } - #[rstest_parametrize( + #[rstest( username, password, case("usr0", "pwd5"), case("usr1", "pwd4"), |