Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

find is not working #285

Closed
johnkarasev opened this issue Oct 30, 2018 · 3 comments
Closed

find is not working #285

johnkarasev opened this issue Oct 30, 2018 · 3 comments

Comments

@johnkarasev
Copy link

Hello the current find function is not working :

notworking
Its giving me
13 | match coll.find(Some(doc.clone()), None) {
| ^^^^^^^^^^^ expected struct bson::ordered::OrderedDocument, found a different struct bson::ordered::OrderedDocument

which does not make any sense

@thedodd
Copy link
Contributor

thedodd commented Oct 30, 2018

Hey @johnkarasev, you should have a look at #281. That’s the problem (or part of it, at least).

Easiest way to fix:

  • check the version of the bson crate that is required by the mongodb crate in your Cargo.lock.
  • update your Cargo.toml to have an exact version requirement on the version of bson that you discover from the above step.

That should do the trick.

@johnkarasev
Copy link
Author

Thanks! that solved the issue.

@stivenson
Copy link

Hey @johnkarasev, you should have a look at #281. That’s the problem (or part of it, at least).

Easiest way to fix:

* check the version of the bson crate that is required by the mongodb crate in your Cargo.lock.

* update your Cargo.toml to have an exact version requirement on the version of bson that you discover from the above step.

That should do the trick.

Gracias, funcionó.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants