diff --git a/rust/src/doc.rs b/rust/src/doc.rs index 297b1e6..b7b3c53 100644 --- a/rust/src/doc.rs +++ b/rust/src/doc.rs @@ -355,8 +355,7 @@ impl Doc { pub fn cursor_position(&self, obj: ObjId, cursor: Cursor) -> Result { let obj = am::ObjId::from(obj); let doc = self.0.read().unwrap(); - doc - .get_cursor_position(obj, &cursor.into(), None) + doc.get_cursor_position(obj, &cursor.into(), None) .map(|cursor| cursor as u64) .map_err(|error| DocError::Internal(error)) } @@ -373,8 +372,7 @@ impl Doc { .into_iter() .map(am::ChangeHash::from) .collect::>(); - doc - .get_cursor_position(obj, &cursor.into(), Some(&heads)) + doc.get_cursor_position(obj, &cursor.into(), Some(&heads)) .map(|cursor| cursor as u64) .map_err(|error| DocError::Internal(error)) }