aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkhai96_ <hvksmr1996@gmail.com>2019-04-20 07:14:24 +0000
committerkhai96_ <hvksmr1996@gmail.com>2019-04-20 07:14:24 +0000
commit646190e5c6a5c93b32a5f6efcc4fc7b7af11037d (patch)
treedde04a28aba0e5cb201f7851dae59741782563e1 /src
parentUpdate help description for --auth (diff)
downloadminiserve-646190e5c6a5c93b32a5f6efcc4fc7b7af11037d.tar.gz
miniserve-646190e5c6a5c93b32a5f6efcc4fc7b7af11037d.zip
Remove spaces before function names
Diffstat (limited to 'src')
-rw-r--r--src/auth.rs6
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 {