add root folder test

This commit is contained in:
appflowy
2022-01-16 13:44:14 +08:00
parent 6bca483c28
commit 3eff006d6d
9 changed files with 391 additions and 87 deletions

View File

@ -13,6 +13,8 @@ use std::{
str::FromStr,
};
pub type PlainDelta = Delta<PlainTextAttributes>;
// TODO: optimize the memory usage with Arc::make_mut or Cow
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Delta<T: Attributes> {

View File

@ -1,13 +1,12 @@
use crate::{
core::{FlowyStr, Interval, OpBuilder, OperationTransformable},
errors::OTError,
rich_text::{RichTextAttribute, RichTextAttributes},
};
use serde::__private::Formatter;
use serde::{Deserialize, Serialize, __private::Formatter};
use std::{
cmp::min,
fmt,
fmt::{Debug, Display},
fmt::Debug,
ops::{Deref, DerefMut},
};
@ -323,7 +322,7 @@ where
}
}
#[derive(Debug, Clone, Eq, PartialEq, Default)]
#[derive(Debug, Clone, Eq, PartialEq, Default, Serialize, Deserialize)]
pub struct PlainTextAttributes();
impl fmt::Display for PlainTextAttributes {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("PlainTextAttributes") }