Skip to content

Commit

Permalink
Generalize the type of the doc argument of reconcile_insert
Browse files Browse the repository at this point in the history
  • Loading branch information
buceps authored and alexjg committed Feb 14, 2025
1 parent bbcf78b commit 7231194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autosurgeon/src/reconcile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,8 @@ pub fn reconcile_prop<'a, D: Doc, R: Reconcile, O: AsRef<automerge::ObjId>, P: I
///
/// This is useful when you specifically want to insert an object which does not implement
/// `Reconcile::key` into a sequence
pub fn reconcile_insert<R: Reconcile>(
doc: &mut automerge::AutoCommit,
pub fn reconcile_insert<D: Doc, R: Reconcile>(
doc: &mut D,
obj: automerge::ObjId,
idx: usize,
value: R,
Expand Down

0 comments on commit 7231194

Please sign in to comment.