1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Enable the clippy::str_to_string lint

This commit is contained in:
Quentin Gliech
2022-08-05 10:18:32 +02:00
parent 78fe152d9b
commit c1ed726dc8
39 changed files with 120 additions and 81 deletions

View File

@@ -117,15 +117,15 @@ pub(crate) async fn get(
let claim_types_supported = Some(vec![ClaimType::Normal]);
let claims_supported = Some(vec![
"iss".to_string(),
"sub".to_string(),
"aud".to_string(),
"iat".to_string(),
"exp".to_string(),
"nonce".to_string(),
"auth_time".to_string(),
"at_hash".to_string(),
"c_hash".to_string(),
"iss".to_owned(),
"sub".to_owned(),
"aud".to_owned(),
"iat".to_owned(),
"exp".to_owned(),
"nonce".to_owned(),
"auth_time".to_owned(),
"at_hash".to_owned(),
"c_hash".to_owned(),
]);
let claims_parameter_supported = Some(false);

View File

@@ -93,7 +93,7 @@ impl IntoResponse for RouteError {
(
StatusCode::UNAUTHORIZED,
Json(PolicyError::new(
"invalid_client_metadata".to_string(),
"invalid_client_metadata".to_owned(),
joined,
)),
)