From 0837f83b7d50dfcd1d17025c6f09cde810c1b5c7 Mon Sep 17 00:00:00 2001 From: pierresy Date: Sat, 7 Nov 2015 12:18:50 +0100 Subject: Added dependency "term" and support to styles (color, etc ...) --- src/format.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/format.rs') diff --git a/src/format.rs b/src/format.rs index 048d6d1..fe79b38 100644 --- a/src/format.rs +++ b/src/format.rs @@ -28,7 +28,7 @@ impl LineSeparator { } /// Print a full line separator to `out`. `col_width` is a slice containing the width of each column - pub fn print(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { + pub fn print(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { try!(out.write_all(&self.cross)); for width in col_width { try!(out.write_all(&vec![self.line[0]; width+2])); @@ -59,7 +59,7 @@ impl TableFormat { } /// Print a full line separator to `out`. `col_width` is a slice containing the width of each column - pub fn print_line_separator(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { + pub fn print_line_separator(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { if let Some(ref l) = self.line_sep { return l.print(out, col_width); } @@ -67,7 +67,7 @@ impl TableFormat { } /// Print a full title separator to `out`. `col_width` is a slice containing the width of each column - pub fn print_title_separator(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { + pub fn print_title_separator(&self, out: &mut T, col_width: &[usize]) -> Result<(), Error> { if let Some(ref l) = self.title_sep { return l.print(out, col_width); } @@ -75,7 +75,7 @@ impl TableFormat { } /// Print a column separator to `out` - pub fn print_column_separator(&self, out: &mut T) -> Result<(), Error> { + pub fn print_column_separator(&self, out: &mut T) -> Result<(), Error> { return out.write_all(&self.col_sep); } } -- cgit v1.2.3