New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUST-537 Aggregation, runCommand, and index management examples #508
RUST-537 Aggregation, runCommand, and index management examples #508
Conversation
use crate::{error::Result, Database}; | ||
|
||
pub(crate) async fn populate(db: &Database) -> Result<()> { | ||
fn iso_date(text: &str) -> bson::DateTime { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this to return a result rather than unwrapping? Also, we should consider waiting til RUST-977 is merged so that we can use the method implemented there rather than going through chrono
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use parse_rfc3339_str
.
Oh it looks like lint broke with the latest changes, so once thats fixed LGTM (no need for me to review again). |
c953c47
to
d908104
Compare
d908104
to
c1bae79
Compare
No description provided.