Make lints pass
This commit is contained in:
parent
da0e5f7373
commit
0c92bf959b
10 changed files with 30 additions and 20 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue