Fix clippy warning

This commit is contained in:
Simon Bihel 2022-03-28 11:06:20 +01:00
parent a80f7134a1
commit 4fe2d8d5fb
No known key found for this signature in database
GPG Key ID: B7013150BEAA28FD

View File

@ -90,7 +90,7 @@ pub async fn main(req: Request, env: Env) -> Result<Response> {
Ok(oidc::UserInfoResponse::Json(r)) => Ok(Response::from_json(&r)?),
Ok(oidc::UserInfoResponse::Jwt(r)) => {
let mut headers = Headers::new();
headers.append(&ContentType::name().to_string(), "application/jwt")?;
headers.append(ContentType::name().as_ref(), "application/jwt")?;
Ok(Response::from_bytes(
serde_json::to_string(&r)
.unwrap()