fix: clippy warning

This commit is contained in:
cduvray 2023-01-23 23:37:04 +01:00
parent 2c0266b4f8
commit 215bc173c6

View file

@ -51,7 +51,7 @@ fn response_wwwauth(status: StatusCode, bearer: &str) -> Response<BoxBody> {
let mut res = Response::new(body::boxed(Empty::new()));
*res.status_mut() = status;
let h = if bearer.is_empty() {
format!("Bearer")
"Bearer".to_owned()
} else {
format!("Bearer {}", bearer)
};