From a8f0cb7a9d5d20ff2cc256f983eff691bde4be73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20D=C3=ADaz?= Date: Wed, 16 Oct 2024 23:00:05 +0200 Subject: [PATCH] making linter happy --- rust/src/doc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)) }