diff options
author | khai96_ <hvksmr1996@gmail.com> | 2019-04-20 07:14:24 +0000 |
---|---|---|
committer | khai96_ <hvksmr1996@gmail.com> | 2019-04-20 07:14:24 +0000 |
commit | 646190e5c6a5c93b32a5f6efcc4fc7b7af11037d (patch) | |
tree | dde04a28aba0e5cb201f7851dae59741782563e1 /src/auth.rs | |
parent | Update help description for --auth (diff) | |
download | miniserve-646190e5c6a5c93b32a5f6efcc4fc7b7af11037d.tar.gz miniserve-646190e5c6a5c93b32a5f6efcc4fc7b7af11037d.zip |
Remove spaces before function names
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs index e96a0ce..fed3732 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -109,7 +109,7 @@ impl Middleware<crate::MiniserveConfig> for Auth { #[cfg(test)] mod tests { use super::*; - + #[test] fn get_hash_hex_sha256() { let expectation = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad".to_owned(); @@ -124,14 +124,14 @@ mod tests { assert_eq!(expectation, received); } - fn create_auth_params (username: &str, password: &str) -> BasicAuthParams { + fn create_auth_params(username: &str, password: &str) -> BasicAuthParams { BasicAuthParams { username: username.to_owned(), password: password.to_owned(), } } - fn create_required_auth (username: &str, password: &str, encrypt: &str) -> RequiredAuth { + fn create_required_auth(username: &str, password: &str, encrypt: &str) -> RequiredAuth { use RequiredAuthPassword::*; RequiredAuth { |