aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
authorkhai96_ <hvksmr1996@gmail.com>2019-04-24 12:03:48 +0000
committerkhai96_ <hvksmr1996@gmail.com>2019-04-24 12:03:48 +0000
commit706649e38b850f6210dbface1a6c0ca5ccdb468f (patch)
tree6b4f99730c3579b6cf855bdb30c267bb4ca4ecce /src/args.rs
parentUse format! instead of manual string concatenation (diff)
downloadminiserve-706649e38b850f6210dbface1a6c0ca5ccdb468f.tar.gz
miniserve-706649e38b850f6210dbface1a6c0ca5ccdb468f.zip
Run cargo fmt
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs
index b7e31b0..f13d14f 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -161,7 +161,7 @@ pub fn parse_args() -> crate::MiniserveConfig {
mod tests {
use super::*;
- fn create_required_auth (username: &str, password: &str, encrypt: &str) -> auth::RequiredAuth {
+ fn create_required_auth(username: &str, password: &str, encrypt: &str) -> auth::RequiredAuth {
use auth::*;
use RequiredAuthPassword::*;
@@ -171,7 +171,7 @@ mod tests {
"plain" => Plain(password.to_owned()),
"sha256" => Sha256(hex::decode(password.to_owned()).unwrap()),
"sha512" => Sha512(hex::decode(password.to_owned()).unwrap()),
- _ => panic!("Unknown encryption type")
+ _ => panic!("Unknown encryption type"),
},
}
}