summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <phsym@users.noreply.github.com>2017-06-08 08:50:15 +0200
committerGitHub <noreply@github.com>2017-06-08 08:50:15 +0200
commit91259572f46c6a890c547341e493a614c2443914 (patch)
tree2a13858424d0ceae135284537fa7b2f625055904 /src/cell.rs
parentc5f20b362018aabb12608e220cf5b961621cc883 (diff)
parenta997815f81aa2fe864132a658974b1dc397c0324 (diff)
Merge pull request #64 from phsym/convert_try_macro_uses
Convert try macro uses
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cell.rs b/src/cell.rs
index af70a9d..ec9deb7 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -201,7 +201,7 @@ impl Cell {
Err(e) => return Err(term_error_to_io_error(e)),
};
}
- try!(self.print(out, idx, col_width, skip_right_fill));
+ self.print(out, idx, col_width, skip_right_fill)?;
match out.reset() {
Ok(..) |
Err(::term::Error::NotSupported) |
@@ -376,7 +376,7 @@ mod tests {
.with_style(Attr::ForegroundColor(color::BRIGHT_BLACK))
.with_style(Attr::BackgroundColor(color::WHITE));
cell.align(Alignment::RIGHT);
-
+
//style_spec("FDBwr");
assert_eq!(cell.style.len(), 2);
assert_eq!(cell.align, Alignment::RIGHT);