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.

refactor: remove Box in DocumentOperation

appflowy294b1bea13a5
diff --git a/shared-lib/lib-ot/src/core/document/position.rs b/shared-lib/lib-ot/src/core/document/position.rs
index 5be8fb4401..54ead9c28a 100644
--- a/shared-lib/lib-ot/src/core/document/position.rs
+++ b/shared-lib/lib-ot/src/core/document/position.rs
@@ -9,6 +9,12 @@ impl std::ops::Deref for Path {
}
}
+impl AsRef<Path> for usize {
+ fn as_ref(&self) -> &Path {
+ todo!()
+ }
+}
+
impl Path {
// delta is default to be 1
pub fn transform(pre_insert_path: &Path, b: &Path, offset: i64) -> Path {