mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[rust]: fix some unuse warniings
This commit is contained in:
parent
7b47fb5c7f
commit
ce126fe08d
@ -17,6 +17,7 @@ use std::{
|
|||||||
|
|
||||||
#[derive(Clone, Debug, Derivative)]
|
#[derive(Clone, Debug, Derivative)]
|
||||||
pub struct EventRequest {
|
pub struct EventRequest {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) id: String,
|
pub(crate) id: String,
|
||||||
pub(crate) event: Event,
|
pub(crate) event: Event,
|
||||||
#[derivative(Debug = "ignore")]
|
#[derivative(Debug = "ignore")]
|
||||||
|
@ -101,6 +101,7 @@ pub struct DatabaseCustomizerConfig {
|
|||||||
pub(crate) journal_mode: SQLiteJournalMode,
|
pub(crate) journal_mode: SQLiteJournalMode,
|
||||||
pub(crate) synchronous: SQLiteSynchronous,
|
pub(crate) synchronous: SQLiteSynchronous,
|
||||||
pub(crate) busy_timeout: i32,
|
pub(crate) busy_timeout: i32,
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) secure_delete: bool,
|
pub(crate) secure_delete: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,10 @@ const MAX_UNDOS: usize = 20;
|
|||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct UndoResult {
|
pub struct UndoResult {
|
||||||
|
#[allow(dead_code)]
|
||||||
success: bool,
|
success: bool,
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
len: usize,
|
len: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,6 +19,7 @@ impl UndoResult {
|
|||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct History {
|
pub struct History {
|
||||||
|
#[allow(dead_code)]
|
||||||
cur_undo: usize,
|
cur_undo: usize,
|
||||||
undos: Vec<Delta>,
|
undos: Vec<Delta>,
|
||||||
redoes: Vec<Delta>,
|
redoes: Vec<Delta>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user