Make lints pass

This commit is contained in:
Andras Schmelczer 2024-12-18 21:54:58 +00:00
parent da0e5f7373
commit 0c92bf959b
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
10 changed files with 30 additions and 20 deletions

View file

@ -12,8 +12,8 @@ pub async fn ping(
maybe_auth_header: Option<TypedHeader<Authorization<Bearer>>>,
State(state): State<AppState>,
) -> Result<Json<PingResponse>, SyncServerError> {
let is_authenticated = maybe_auth_header
.is_some_and(|auth_header| auth(&state, auth_header.token()).is_ok());
let is_authenticated =
maybe_auth_header.is_some_and(|auth_header| auth(&state, auth_header.token()).is_ok());
Ok(Json(PingResponse {
server_version: env!("CARGO_PKG_VERSION").to_string(),