Refactor long line for more readability

This commit is contained in:
Matthias Beyer 2016-09-05 00:39:43 +02:00
parent 24c73325f3
commit 07d4c45b3f

View file

@ -207,9 +207,8 @@ impl<'a> IntoTask<'a> for TTask {
.and_then(|mut fle| { .and_then(|mut fle| {
{ {
let mut hdr = fle.get_header_mut(); let mut hdr = fle.get_header_mut();
if try!(hdr.read("todo").map_err_into(TodoErrorKind::StoreError)) let read = hdr.read("todo").map_err_into(TodoErrorKind::StoreError);
.is_none() if try!(read).is_none() {
{
try!(hdr try!(hdr
.set("todo", Value::Table(BTreeMap::new())) .set("todo", Value::Table(BTreeMap::new()))
.map_err_into(TodoErrorKind::StoreError)); .map_err_into(TodoErrorKind::StoreError));