You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
ci: Update clippy to 1.66 and fix new warnings
This commit is contained in:
@ -210,7 +210,7 @@ pub(crate) async fn post(
|
||||
}
|
||||
};
|
||||
|
||||
let user_id = format!("@{}:{}", session.user.username, homeserver);
|
||||
let user_id = format!("@{username}:{homeserver}", username = session.user.username);
|
||||
|
||||
// If the client asked for a refreshable token, make it expire
|
||||
let expires_in = if input.refresh_token {
|
||||
|
@ -52,7 +52,7 @@ impl_from_error_for_route!(sqlx::Error);
|
||||
|
||||
impl IntoResponse for RouteError {
|
||||
fn into_response(self) -> axum::response::Response {
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, format!("{}", self)).into_response()
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, format!("{self}")).into_response()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ impl IntoResponse for RouteError {
|
||||
}
|
||||
RouteError::UnknownRedirectUri(e) => (
|
||||
StatusCode::BAD_REQUEST,
|
||||
format!("Invalid redirect URI ({})", e),
|
||||
format!("Invalid redirect URI ({e})"),
|
||||
)
|
||||
.into_response(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user