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 .envrc
.direnv/ .direnv/
**/.DS_Store
**/.env.* **/.env.*

View file

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

View file

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

View file

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