diff --git a/autosurgeon/src/doc.rs b/autosurgeon/src/doc.rs index a9eaf60..22aa123 100644 --- a/autosurgeon/src/doc.rs +++ b/autosurgeon/src/doc.rs @@ -16,13 +16,11 @@ pub trait ReadDoc { ) -> Result, ObjId)>, AutomergeError>; fn object_type>(&self, obj: O) -> Option; - fn map_range<'a, O: AsRef, R: RangeBounds>( - &'a self, - obj: O, - range: R, - ) -> am::iter::MapRange<'a, R> + fn map_range<'a, O, R>(&'a self, obj: O, range: R) -> am::iter::MapRange<'a, R> where - R: RangeBounds + 'a; + R: RangeBounds + 'a, + O: AsRef, + R: RangeBounds; fn list_range, R: RangeBounds>( &self, @@ -107,13 +105,11 @@ impl ReadDoc for am::AutoCommit { .unwrap_or(None) } - fn map_range<'a, O: AsRef, R: RangeBounds>( - &'a self, - obj: O, - range: R, - ) -> am::iter::MapRange<'a, R> + fn map_range<'a, O, R>(&'a self, obj: O, range: R) -> am::iter::MapRange<'a, R> where R: RangeBounds + 'a, + O: AsRef, + R: RangeBounds, { am::ReadDoc::map_range(self, obj, range) }