I replaced the bounds of the form Model + X with just Model. In the Model trait I wrote a sentence of documentation explaining why the additional trait bounds are needed.
In the ModelCursor struct, instead of writing out the bounds required for Cursor, I restricted the whole struct to Model. That made sense to me, because a ModelCursor seems to be designed to be used with a Model.
I also removed the PhantomData from ModelCursor, since the generic type T is now used in the Cursor.
I additionally added a few characters of documentation stating that we now also test against mongodb 5, and I ran cargo update.
This is as discussed in #89.
I replaced the bounds of the form
Model + X
with justModel
. In theModel
trait I wrote a sentence of documentation explaining why the additional trait bounds are needed.In the
ModelCursor
struct, instead of writing out the bounds required forCursor
, I restricted the whole struct toModel
. That made sense to me, because aModelCursor
seems to be designed to be used with aModel
.I also removed the
PhantomData
fromModelCursor
, since the generic typeT
is now used in theCursor
.I additionally added a few characters of documentation stating that we now also test against mongodb 5, and I ran
cargo update
.