From cf7dca33e2e2131c20e4bbc34ad222c5e6edc29a Mon Sep 17 00:00:00 2001 From: Pierre-Henri Symoneaux Date: Mon, 26 Aug 2019 23:48:51 +0200 Subject: Privatize deprecated functions functions for #87 --- src/cell.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cell.rs') diff --git a/src/cell.rs b/src/cell.rs index 4b54f19..39c418b 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -176,14 +176,14 @@ impl Cell { } /// Return the height of the cell - #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] - pub fn get_height(&self) -> usize { + // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] + pub (crate) fn get_height(&self) -> usize { self.content.len() } /// Return the width of the cell - #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] - pub fn get_width(&self) -> usize { + // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] + pub (crate) fn get_width(&self) -> usize { self.width } @@ -206,8 +206,8 @@ impl Cell { /// `idx` is the line index to print. `col_width` is the column width used to /// fill the cells with blanks so it fits in the table. /// If `ìdx` is higher than this cell's height, it will print empty content - #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] - pub fn print( + // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] + pub (crate) fn print( &self, out: &mut T, idx: usize, @@ -219,8 +219,8 @@ impl Cell { } /// Apply style then call `print` to print the cell into a terminal - #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] - pub fn print_term( + // #[deprecated(since="0.8.0", note="Will become private in future release. See [issue #87](https://github.com/phsym/prettytable-rs/issues/87)")] + pub (crate) fn print_term( &self, out: &mut T, idx: usize, -- cgit v1.2.3