chore: fix clippy warnings (#1103)

This commit is contained in:
Nathan.fooo 2024-12-29 12:47:34 +08:00 committed by GitHub
parent 48e038b9ed
commit b886db1d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View file

@ -18,4 +18,5 @@ flake.lock
.envrc
.direnv/
**/.DS_Store
**/.env.*

View file

@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
pub struct JsonResponse<T> {
pub code: u16,
pub data: T,
@ -21,6 +22,7 @@ pub struct WorkspaceUsageLimits {
}
#[derive(Deserialize)]
#[allow(dead_code)]
pub struct WorkspaceMember {
pub name: String,
pub email: String,
@ -38,6 +40,7 @@ pub struct WorkspaceDocUsage {
}
#[derive(Deserialize)]
#[allow(dead_code)]
pub struct UserProfile {
pub uid: i64,
pub uuid: Uuid,

View file

@ -2,6 +2,7 @@ use axum::response::{IntoResponse, Response};
use shared_entity::response::AppResponseError;
#[derive(Debug)]
#[allow(dead_code)]
pub enum Error {
NotOk(u16, String), // HTTP status code, payload
Reqwest(reqwest::Error),

View file

@ -513,7 +513,7 @@ async fn xack_task(
group_name: &str,
entry_id: &str,
) -> Result<(), ImportError> {
redis_client
let _: () = redis_client
.xack(stream_name, group_name, &[entry_id])
.await
.map_err(|e| {