diff options
author | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2017-06-07 23:38:14 +0200 |
---|---|---|
committer | Pierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com> | 2017-06-07 23:38:14 +0200 |
commit | 2d7fe699009d6f4010486cc27ccd0743f95a8ae9 (patch) | |
tree | ac1ff57aedfa2c2ab960c7dc7c7e936db089d7de /src/cell.rs | |
parent | cf2a344d8f735f9fe7b2150f0cd6964b980cccdf (diff) |
Converted all try! macro uses to ? operator
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 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); |