cargo fmt

This commit is contained in:
Martin Algesten
2018-06-22 10:16:37 +02:00
parent 5f975270bf
commit 0a828bb4a5
12 changed files with 37 additions and 38 deletions

View File

@@ -324,7 +324,6 @@ impl Agent {
}
}
fn basic_auth(user: &str, pass: &str) -> String {
let safe = match user.find(":") {
Some(idx) => &user[..idx],
@@ -333,7 +332,6 @@ fn basic_auth(user: &str, pass: &str) -> String {
::base64::encode(&format!("{}:{}", safe, pass))
}
fn mime_of<S: Into<String>>(s: S) -> String {
let s = s.into();
match &s[..] {
@@ -346,7 +344,6 @@ fn mime_of<S: Into<String>>(s: S) -> String {
}.to_string()
}
#[cfg(test)]
mod tests {
use super::*;