diff options
author | Pierre-Henri Symoneaux <phsym@users.noreply.github.com> | 2019-08-25 13:25:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-25 13:25:42 +0200 |
commit | d5f0296b2bb5c7c6c3b6347808e6bf37c3264766 (patch) | |
tree | a6fb13fdc05a94684fee9859c3355d478852ba3d /src/lib.rs | |
parent | fadaa64ec513177feeb858b0977b4c18899b4961 (diff) | |
parent | ffd151ab6ffa7581cae43b2a59cd5c94d406d862 (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.rs | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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() { |