Skip to content

Commit

Permalink
making linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-dev committed Oct 16, 2024
1 parent dfc6dc1 commit a8f0cb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rust/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ impl Doc {
pub fn cursor_position(&self, obj: ObjId, cursor: Cursor) -> Result<u64, DocError> {
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))
}
Expand All @@ -373,8 +372,7 @@ impl Doc {
.into_iter()
.map(am::ChangeHash::from)
.collect::<Vec<_>>();
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))
}
Expand Down

0 comments on commit a8f0cb7

Please sign in to comment.