Update to code to Rust 1.67
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-02 10:22:15 +01:00
parent 107b613be5
commit f2e4826b14
4 changed files with 16 additions and 26 deletions

View File

@ -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()
}