From 646190e5c6a5c93b32a5f6efcc4fc7b7af11037d Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 20 Apr 2019 14:14:24 +0700 Subject: Remove spaces before function names --- src/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 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 { -- cgit v1.2.3