Enable more lints
This commit is contained in:
parent
3f73578fc9
commit
da0e5f7373
12 changed files with 17 additions and 12 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue