diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-26 17:05:59 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-26 17:05:59 +0000 |
commit | 8440d59dd69594d8f09e640a02f0494544385d61 (patch) | |
tree | ee549f132ffd3fa44469d1e80813c1ac3c4b4dcd /src/auth.rs | |
parent | Merge pull request #76 from KSXGitHub/pullrequest.hashed-password (diff) | |
download | miniserve-8440d59dd69594d8f09e640a02f0494544385d61.tar.gz miniserve-8440d59dd69594d8f09e640a02f0494544385d61.zip |
Cargo fmt
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/auth.rs b/src/auth.rs index e75f498..d8de30e 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -165,13 +165,18 @@ mod tests { } #[rstest_parametrize( - should_pass, param_username, param_password, required_username, required_password, encrypt, + 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"), case(true, "obi", "hello there", "obi", "hello there", "sha256"), case(false, "obi", "hello there", "obi", "hi!", "sha256"), case(true, "obi", "hello there", "obi", "hello there", "sha512"), - case(false, "obi", "hello there", "obi", "hi!", "sha512"), + case(false, "obi", "hello there", "obi", "hi!", "sha512") )] fn test_auth( should_pass: bool, |