From 6c7212d7417bb595388293a50e43401085a605f4 Mon Sep 17 00:00:00 2001 From: hcpl Date: Mon, 5 Jun 2017 12:25:19 +0300 Subject: Make deprecation note and function name more clear --- src/format.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/format.rs b/src/format.rs index 411ec41..25f477e 100644 --- a/src/format.rs +++ b/src/format.rs @@ -57,7 +57,7 @@ impl LineSeparator { } /// Print a full line separator to `out`. `col_width` is a slice containing the width of each column - #[deprecated(since = "0.6.7", note = "assumes padding is always (1, 1)")] + #[deprecated(since = "0.6.7", note = "function will be removed. See [issue #57](https://github.com/phsym/prettytable-rs/pull/57).")] pub fn print(&self, out: &mut T, col_width: &[usize], @@ -65,17 +65,17 @@ impl LineSeparator { lborder: bool, rborder: bool) -> Result<(), Error> { - self.real_print(out, col_width, (1, 1), colsep, lborder, rborder) + self._print(out, col_width, (1, 1), colsep, lborder, rborder) } - fn real_print(&self, - out: &mut T, - col_width: &[usize], - padding: (usize, usize), - colsep: bool, - lborder: bool, - rborder: bool) - -> Result<(), Error> { + fn _print(&self, + out: &mut T, + col_width: &[usize], + padding: (usize, usize), + colsep: bool, + lborder: bool, + rborder: bool) + -> Result<(), Error> { if lborder { try!(out.write_all(Utf8Char::from(self.ljunc).as_bytes())); } @@ -201,12 +201,12 @@ impl TableFormat { -> Result<(), Error> { match *self.get_sep_for_line(pos) { Some(ref l) => { - l.real_print(out, - col_width, - self.get_padding(), - self.csep.is_some(), - self.lborder.is_some(), - self.rborder.is_some()) + l._print(out, + col_width, + self.get_padding(), + self.csep.is_some(), + self.lborder.is_some(), + self.rborder.is_some()) } None => Ok(()), } -- cgit v1.2.3