From deb86bd457d3199cea03fb6d2579126b35ab9b75 Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Wed, 11 Apr 2018 00:32:39 +0200 Subject: Reexporting types used from the term crate --- examples/style.rs | 2 +- src/cell.rs | 2 +- src/lib.rs | 3 ++- 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; 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; -- cgit v1.2.3