소스 검색

refactor: remove Box in DocumentOperation

appflowy 2 년 전
부모
커밋
294b1bea13
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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 {
     // delta is default to be 1
     pub fn transform(pre_insert_path: &Path, b: &Path, offset: i64) -> Path {