diff --git a/awc/src/ws.rs b/awc/src/ws.rs index e4c164d15..2663e358b 100644 --- a/awc/src/ws.rs +++ b/awc/src/ws.rs @@ -238,7 +238,10 @@ impl WebsocketsRequest { Some(password) => format!("{}:{}", username, password), 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