Update to code to Rust 1.67
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -289,8 +289,7 @@ pub async fn token(
|
||||
&query,
|
||||
"invalid_request",
|
||||
&format!(
|
||||
"Authorization header does not start with 'Basic ', got '{:#?}'",
|
||||
v
|
||||
"Authorization header does not start with 'Basic ', got '{v:#?}'"
|
||||
),
|
||||
));
|
||||
}
|
||||
@ -538,10 +537,7 @@ fn user_info_error(err: &str, description: &str) -> HttpResponse {
|
||||
HttpResponse::Unauthorized()
|
||||
.insert_header((
|
||||
"WWW-Authenticate",
|
||||
format!(
|
||||
"Bearer error=\"{}\", error_description=\"{}\"",
|
||||
err, description
|
||||
),
|
||||
format!("Bearer error=\"{err}\", error_description=\"{description}\""),
|
||||
))
|
||||
.finish()
|
||||
}
|
||||
|
Reference in New Issue
Block a user