Tidier
This commit is contained in:
@@ -136,7 +136,7 @@ impl<'t> StorageTxn for Txn<'t> {
|
|||||||
.optional()?;
|
.optional()?;
|
||||||
|
|
||||||
// Get task from "stored" wrapper
|
// Get task from "stored" wrapper
|
||||||
Ok(result.and_then(|t: StoredTaskMap| Some(t.0)))
|
Ok(result.map(|t| t.0))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_task(&mut self, uuid: Uuid) -> anyhow::Result<bool> {
|
fn create_task(&mut self, uuid: Uuid) -> anyhow::Result<bool> {
|
||||||
@@ -221,7 +221,7 @@ impl<'t> StorageTxn for Txn<'t> {
|
|||||||
)
|
)
|
||||||
.optional()?;
|
.optional()?;
|
||||||
Ok(version
|
Ok(version
|
||||||
.and_then(|u| Some(u.0))
|
.map(|u| u.0)
|
||||||
.unwrap_or(DEFAULT_BASE_VERSION))
|
.unwrap_or(DEFAULT_BASE_VERSION))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user