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
|
.envrc
|
||||||
.direnv/
|
.direnv/
|
||||||
|
|
||||||
|
**/.DS_Store
|
||||||
**/.env.*
|
**/.env.*
|
|
@ -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,
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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| {
|
||||||
|
|
Loading…
Add table
Reference in a new issue