Remove a stray space. Clean up awkware if result...result construct.

This commit is contained in:
Lars Bergstrom 2013-09-12 15:16:35 -07:00
parent 969a4e30fb
commit 0c6514eac8
2 changed files with 4 additions and 7 deletions

View file

@ -43,7 +43,7 @@ endif
ifdef CFG_ENABLE_DEBUG ifdef CFG_ENABLE_DEBUG
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG)) $(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
CFG_RUSTC_FLAGS += CFG_RUSTC_FLAGS +=
CFG_GCCISH_CFLAGS += -DRUST_DEBUG CFG_GCCISH_CFLAGS += -DRUST_DEBUG
else else
CFG_GCCISH_CFLAGS += -DRUST_NDEBUG CFG_GCCISH_CFLAGS += -DRUST_NDEBUG

View file

@ -489,12 +489,9 @@ impl CompositorLayer {
.any(|x| { .any(|x| {
let buffers = cell.take(); let buffers = cell.take();
let result = x.add_buffers(pipeline_id, buffers.clone(), epoch); let result = x.add_buffers(pipeline_id, buffers.clone(), epoch);
if result { cell.put_back(buffers);
result result
} else { })
cell.put_back(buffers);
result
}})
} }
} }