Skip to content

Commit

Permalink
fix latest clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed May 16, 2024
1 parent 4334932 commit e28ee49
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions autosurgeon/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ pub trait ReadDoc {
) -> Result<Option<(Value<'_>, ObjId)>, AutomergeError>;

fn object_type<O: AsRef<ObjId>>(&self, obj: O) -> Option<am::ObjType>;
fn map_range<'a, O: AsRef<ObjId>, R: RangeBounds<String>>(
&'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<String> + 'a;
R: RangeBounds<String> + 'a,
O: AsRef<ObjId>,
R: RangeBounds<String>;

fn list_range<O: AsRef<ObjId>, R: RangeBounds<usize>>(
&self,
Expand Down Expand Up @@ -107,13 +105,11 @@ impl ReadDoc for am::AutoCommit {
.unwrap_or(None)
}

fn map_range<'a, O: AsRef<ObjId>, R: RangeBounds<String>>(
&'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<String> + 'a,
O: AsRef<ObjId>,
R: RangeBounds<String>,
{
am::ReadDoc::map_range(self, obj, range)
}
Expand Down

0 comments on commit e28ee49

Please sign in to comment.