Skip to content

Instantly share code, notes, and snippets.

@danared
Created August 31, 2015 15:04
Show Gist options
  • Save danared/4599b9c41cc487c7d31d to your computer and use it in GitHub Desktop.
Save danared/4599b9c41cc487c7d31d to your computer and use it in GitHub Desktop.
let cursor = match coll.find(doc! { age: { $gte: 18 } } , None) {
Ok(cursor) => cursor,
Err(error) => println!("The following error occured: {}", error)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment