We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9833189 commit b8536edCopy full SHA for b8536ed
src/experiments.rs
@@ -481,11 +481,9 @@ impl Experiment {
481
}
482
483
pub fn get(db: &Database, name: &str) -> Fallible<Option<Experiment>> {
484
- let record = db.get_row(
485
- "SELECT * FROM experiments WHERE name = ?1;",
486
- [&name],
487
- |r| ExperimentDBRecord::from_row(r),
488
- )?;
+ let record = db.get_row("SELECT * FROM experiments WHERE name = ?1;", [&name], |r| {
+ ExperimentDBRecord::from_row(r)
+ })?;
489
490
if let Some(record) = record {
491
Ok(Some(record.into_experiment()?))
0 commit comments