mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2026-02-03 09:55:13 +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()));
|
let mut res = Response::new(body::boxed(Empty::new()));
|
||||||
*res.status_mut() = status;
|
*res.status_mut() = status;
|
||||||
let h = if bearer.is_empty() {
|
let h = if bearer.is_empty() {
|
||||||
format!("Bearer")
|
"Bearer".to_owned()
|
||||||
} else {
|
} else {
|
||||||
format!("Bearer {}", bearer)
|
format!("Bearer {}", bearer)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue