File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 8383 /// # let mut session = client.start_session().await?;
8484 /// let mut cs = coll.watch().session(&mut session).await?;
8585 /// while let Some(event) = cs.next(&mut session).await? {
86- /// let id = bson::to_bson (&event.id)?;
86+ /// let id = bson::serialize_to_bson (&event.id)?;
8787 /// other_coll.insert_one(doc! { "id": id }).session(&mut session).await?;
8888 /// }
8989 /// # Ok::<(), mongodb::error::Error>(())
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ where
190190 /// # let mut session = client.start_session().run()?;
191191 /// let mut cs = coll.watch().session(&mut session).run()?;
192192 /// while let Some(event) = cs.next(&mut session)? {
193- /// let id = bson::to_bson (&event.id)?;
193+ /// let id = bson::serialize_to_bson (&event.id)?;
194194 /// other_coll.insert_one(doc! { "id": id }).session(&mut session).run()?;
195195 /// }
196196 /// # Ok::<(), mongodb::error::Error>(())
You can’t perform that action at this time.
0 commit comments