Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

[rust]: fix some unuse warniings

appflowyce126fe08dec
diff --git a/frontend/rust-lib/lib-dispatch/src/request/request.rs b/frontend/rust-lib/lib-dispatch/src/request/request.rs
index edcfc3fe36..182d3be205 100644
--- a/frontend/rust-lib/lib-dispatch/src/request/request.rs
+++ b/frontend/rust-lib/lib-dispatch/src/request/request.rs
@@ -17,6 +17,7 @@ use std::{
#[derive(Clone, Debug, Derivative)]
pub struct EventRequest {
+ #[allow(dead_code)]
pub(crate) id: String,
pub(crate) event: Event,
#[derivative(Debug = "ignore")]
diff --git a/frontend/rust-lib/lib-sqlite/src/pool.rs b/frontend/rust-lib/lib-sqlite/src/pool.rs
index 72b4f95fc6..b0244b58db 100644
--- a/frontend/rust-lib/lib-sqlite/src/pool.rs
+++ b/frontend/rust-lib/lib-sqlite/src/pool.rs
@@ -101,6 +101,7 @@ pub struct DatabaseCustomizerConfig {
pub(crate) journal_mode: SQLiteJournalMode,
pub(crate) synchronous: SQLiteSynchronous,
pub(crate) busy_timeout: i32,
+ #[allow(dead_code)]
pub(crate) secure_delete: bool,
}
diff --git a/shared-lib/flowy-document-infra/src/core/history.rs b/shared-lib/flowy-document-infra/src/core/history.rs
index 472c574436..d03b8800f4 100644
--- a/shared-lib/flowy-document-infra/src/core/history.rs
+++ b/shared-lib/flowy-document-infra/src/core/history.rs
@@ -4,7 +4,10 @@ const MAX_UNDOS: usize = 20;
#[derive(Debug, Clone)]
pub struct UndoResult {
+ #[allow(dead_code)]
success: bool,
+
+ #[allow(dead_code)]
len: usize,
}
@@ -16,6 +19,7 @@ impl UndoResult {
#[derive(Debug, Clone)]
pub struct History {
+ #[allow(dead_code)]
cur_undo: usize,
undos: Vec<Delta>,
redoes: Vec<Delta>,