summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Sollich <hendrik@hoodie.de>2018-04-11 00:32:39 +0200
committerHendrik Sollich <hendrik@hoodie.de>2018-04-17 19:55:30 +0200
commitdeb86bd457d3199cea03fb6d2579126b35ab9b75 (patch)
treee8ece0be5e38b5fca3471b29d160b975d65d6f64
parent34d9492bbb4a66f52df48734bd112e4bddc2ae6d (diff)
Reexporting types used from the term crate
-rw-r--r--examples/style.rs2
-rw-r--r--src/cell.rs2
-rw-r--r--src/lib.rs3
-rw-r--r--src/row.rs2
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;
diff --git a/src/lib.rs b/src/lib.rs
index bd08d43..cf3e658 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;
diff --git a/src/row.rs b/src/row.rs
index f7e49f0..f02f9ef 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -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;