diff options
author | Hendrik Sollich <hendrik@hoodie.de> | 2018-04-11 00:32:39 +0200 |
---|---|---|
committer | Hendrik Sollich <hendrik@hoodie.de> | 2018-04-17 19:55:30 +0200 |
commit | deb86bd457d3199cea03fb6d2579126b35ab9b75 (patch) | |
tree | e8ece0be5e38b5fca3471b29d160b975d65d6f64 | |
parent | 34d9492bbb4a66f52df48734bd112e4bddc2ae6d (diff) |
Reexporting types used from the term crate
-rw-r--r-- | examples/style.rs | 2 | ||||
-rw-r--r-- | src/cell.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 | ||||
-rw-r--r-- | src/row.rs | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/examples/style.rs b/examples/style.rs index d001fca..80e2b61 100644 --- a/examples/style.rs +++ b/examples/style.rs @@ -5,7 +5,7 @@ use prettytable::Table; use prettytable::row::Row; use prettytable::cell::Cell; -use term::{Attr, color}; +use prettytable::{Attr, color}; #[allow(dead_code)] fn main() { diff --git a/src/cell.rs b/src/cell.rs index 9ab9c59..255c3fd 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -3,7 +3,7 @@ use std::io::{Write, Error}; use std::string::ToString; use unicode_width::UnicodeWidthStr; -use term::{Attr, Terminal, color}; +use super::{Attr, Terminal, color}; use super::format::Alignment; use super::utils::print_align; @@ -23,7 +23,8 @@ use std::slice::{Iter, IterMut}; use std::ops::{Index, IndexMut}; use std::mem::transmute; -use term::{Terminal, stdout}; +pub use term::{Attr, color}; +pub(crate) use term::{Terminal, stdout}; pub mod cell; pub mod row; @@ -5,7 +5,7 @@ use std::slice::{Iter, IterMut}; // use std::vec::IntoIter; use std::ops::{Index, IndexMut}; -use term::Terminal; +use super::Terminal; use super::utils::NEWLINE; use super::cell::Cell; |