Explorar o código

refactor: remove Box in DocumentOperation

appflowy %!s(int64=2) %!d(string=hai) anos
pai
achega
294b1bea13
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      shared-lib/lib-ot/src/core/document/position.rs

+ 6 - 0
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 {
 impl Path {
     // delta is default to be 1
     // delta is default to be 1
     pub fn transform(pre_insert_path: &Path, b: &Path, offset: i64) -> Path {
     pub fn transform(pre_insert_path: &Path, b: &Path, offset: i64) -> Path {