mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-11 23:50:07 +01:00
fix: clippy warning
This commit is contained in:
parent
2c0266b4f8
commit
215bc173c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue