diff options
author | Pierre-Henri Symoneaux <phsym@users.noreply.github.com> | 2017-06-08 08:50:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 08:50:15 +0200 |
commit | 91259572f46c6a890c547341e493a614c2443914 (patch) | |
tree | 2a13858424d0ceae135284537fa7b2f625055904 /src/cell.rs | |
parent | c5f20b362018aabb12608e220cf5b961621cc883 (diff) | |
parent | a997815f81aa2fe864132a658974b1dc397c0324 (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.rs | 4 |
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); |