Skip to content

Commit

Permalink
chore: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Dec 28, 2024
1 parent 48e038b commit b0e415d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ flake.lock
.envrc
.direnv/

**/.DS_Store
**/.env.*
3 changes: 3 additions & 0 deletions admin_frontend/src/ext/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -21,6 +22,7 @@ pub struct WorkspaceUsageLimits {
}

#[derive(Deserialize)]
#[allow(dead_code)]
pub struct WorkspaceMember {
pub name: String,
pub email: String,
Expand All @@ -38,6 +40,7 @@ pub struct WorkspaceDocUsage {
}

#[derive(Deserialize)]
#[allow(dead_code)]
pub struct UserProfile {
pub uid: i64,
pub uuid: Uuid,
Expand Down
1 change: 1 addition & 0 deletions admin_frontend/src/ext/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/appflowy-worker/src/import_worker/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit b0e415d

Please sign in to comment.