From 2d7fe699009d6f4010486cc27ccd0743f95a8ae9 Mon Sep 17 00:00:00 2001 From: Pierre-Henri Symoneaux Date: Wed, 7 Jun 2017 23:38:14 +0200 Subject: Converted all try! macro uses to ? operator --- src/cell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cell.rs') diff --git a/src/cell.rs b/src/cell.rs index 16ab37e..7155f43 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); -- cgit v1.2.3