fix fmt warnings

This commit is contained in:
appflowy 2022-01-03 20:13:48 +08:00
parent 661940f728
commit af08c55ebf
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
use crate::util::is_newline;
use crate::{document::InsertExt, util::is_newline};
use lib_ot::{
core::{DeltaBuilder, DeltaIter, NEW_LINE},
rich_text::{
@ -10,7 +10,6 @@ use lib_ot::{
RichTextDelta,
},
};
use crate::document::InsertExt;
pub struct PreserveBlockFormatOnInsert {}
impl InsertExt for PreserveBlockFormatOnInsert {

View File

@ -1,9 +1,8 @@
use crate::util::is_newline;
use crate::{document::InsertExt, util::is_newline};
use lib_ot::{
core::{CharMetric, DeltaBuilder, DeltaIter, NEW_LINE},
rich_text::{RichTextAttributeKey, RichTextAttributes, RichTextDelta},
};
use crate::document::InsertExt;
pub struct ResetLineFormatOnNewLine {}
impl InsertExt for ResetLineFormatOnNewLine {