mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
chore: fix clippy warnings (#1103)
This commit is contained in:
parent
48e038b9ed
commit
b886db1d5c
4 changed files with 6 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,4 +18,5 @@ flake.lock
|
|||
.envrc
|
||||
.direnv/
|
||||
|
||||
**/.DS_Store
|
||||
**/.env.*
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Add table
Reference in a new issue