From e28ee49e4de64a06fa7b331f6b709ca1e8909126 Mon Sep 17 00:00:00 2001 From: Alex Good Date: Thu, 16 May 2024 09:14:02 +0100 Subject: [PATCH] fix latest clippy complaints --- autosurgeon/src/doc.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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) }