diff options
author | hcpl <hcpl.prog@gmail.com> | 2017-06-05 12:25:19 +0300 |
---|---|---|
committer | hcpl <hcpl.prog@gmail.com> | 2017-06-05 12:25:19 +0300 |
commit | 6c7212d7417bb595388293a50e43401085a605f4 (patch) | |
tree | 9528de161c8279543104a65d24987ab9563d288c /src | |
parent | 83b551b9d15cc04cac8c045eee7f97eb301ecc92 (diff) |
Make deprecation note and function name more clear
Diffstat (limited to 'src')
-rw-r--r-- | src/format.rs | 32 |
1 files 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<T: Write + ?Sized>(&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<T: Write + ?Sized>(&self, - out: &mut T, - col_width: &[usize], - padding: (usize, usize), - colsep: bool, - lborder: bool, - rborder: bool) - -> Result<(), Error> { + fn _print<T: Write + ?Sized>(&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(()),
} |