Enable more lints

This commit is contained in:
Andras Schmelczer 2024-12-18 21:33:30 +00:00
parent 3f73578fc9
commit da0e5f7373
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
12 changed files with 17 additions and 12 deletions

View file

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