[rust]: fix some unuse warniings

This commit is contained in:
appflowy 2021-11-23 17:32:07 +08:00
parent 7b47fb5c7f
commit ce126fe08d
3 changed files with 6 additions and 0 deletions

View File

@ -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")]

View File

@ -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,
}

View File

@ -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>,