cargo fmt
This commit is contained in:
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user