Cargo fmt

This commit is contained in:
citreae535 2023-01-16 20:40:48 +08:00
parent f828f8f75a
commit 58fd9e149e
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ impl WebsocketsRequest {
Some(password) => format!("{}:{}", username, password), Some(password) => format!("{}:{}", username, password),
None => format!("{}:", username), None => format!("{}:", username),
}; };
self.header(AUTHORIZATION, format!("Basic {}", BASE64_STANDARD.encode(auth))) self.header(
AUTHORIZATION,
format!("Basic {}", BASE64_STANDARD.encode(auth)),
)
} }
/// Set HTTP bearer authentication header /// Set HTTP bearer authentication header