summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <phsym@users.noreply.github.com>2019-08-25 13:25:42 +0200
committerGitHub <noreply@github.com>2019-08-25 13:25:42 +0200
commitd5f0296b2bb5c7c6c3b6347808e6bf37c3264766 (patch)
treea6fb13fdc05a94684fee9859c3355d478852ba3d /src/lib.rs
parentfadaa64ec513177feeb858b0977b4c18899b4961 (diff)
parentffd151ab6ffa7581cae43b2a59cd5c94d406d862 (diff)
Merge pull request #112 from phsym/ed-2018
Updated to rust 2018 edition
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cc9dd0b..66daaf9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,12 +3,9 @@
unused_import_braces,
unused_qualifications)]
//! A formatted and aligned table printer written in rust
-extern crate unicode_width;
-extern crate term;
-extern crate atty;
+//!
#[macro_use]
extern crate lazy_static;
-extern crate encode_unicode;
use std::io::{self, Write, Error};
use std::fmt;
@@ -587,13 +584,9 @@ macro_rules! ptable {
#[cfg(test)]
mod tests {
- use Table;
- use Slice;
- use Row;
- use Cell;
- use format;
+ use crate::{Table, Slice, Row, Cell, format};
use format::consts::{FORMAT_DEFAULT, FORMAT_NO_LINESEP, FORMAT_NO_COLSEP, FORMAT_CLEAN, FORMAT_BOX_CHARS};
- use utils::StringWriter;
+ use crate::utils::StringWriter;
#[test]
fn table() {