summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com>2019-08-26 23:48:51 +0200
committerPierre-Henri Symoneaux <pierre.henri.symoneaux@gmail.com>2019-08-26 23:48:51 +0200
commitcf7dca33e2e2131c20e4bbc34ad222c5e6edc29a (patch)
tree6095c3ef10e7104d32b9c93e35d173cc243ad95f /src/lib.rs
parent6bb234c979f8153f8ee8eede5cbb9a1ae2658f23 (diff)
Privatize deprecated functions functions for #87HEADmaster
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 11b4ed4..977f58d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -68,8 +68,8 @@ pub struct TableSlice<'a> {
impl<'a> TableSlice<'a> {
/// Compute and return the number of column
- #[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_column_num(&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)")]
+ fn get_column_num(&self) -> usize {
let mut cnum = 0;
for r in self.rows {
let l = r.column_count();
@@ -256,8 +256,9 @@ impl Table {
}
/// Compute and return the number of column
- #[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_column_num(&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)")]
+ #[cfg(test)] // Only used for testing for now
+ pub (crate) fn get_column_num(&self) -> usize {
self.as_ref().get_column_num()
}