From e34ab9c806d63a3af955a74be1a9f1621bd154de Mon Sep 17 00:00:00 2001 From: pierresy Date: Wed, 12 Aug 2015 22:46:28 +0200 Subject: Updated crate version to 0.2.0 --- Cargo.toml | 2 +- README.md | 2 +- src/cell.rs | 8 -------- src/main.rs | 2 +- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 95f4ac4..0542c01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "prettytable-rs" -version = "0.1.3" +version = "0.2.0" description = "A small rust library that print aligned and formatted tables" repository = "https://github.com/phsym/prettytable-rs" documentation = "http://phsym.github.io/prettytable-rs" diff --git a/README.md b/README.md index 3be5cf2..bc77aa2 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ More often, you will include the library as a dependency to your project. In ord ```toml [dependencies] -prettytable-rs = "0.1.2" +prettytable-rs = "0.2.0" ``` diff --git a/src/cell.rs b/src/cell.rs index d57908d..2fe6380 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -2,7 +2,6 @@ use std::io::{Write, Error}; use std::string::ToString; -use std::str::FromStr; use unicode_width::UnicodeWidthStr; use super::format::Align; @@ -85,13 +84,6 @@ impl <'a, T: ToString> From<&'a T> for Cell { } } -impl FromStr for Cell { - type Err = (); - fn from_str(s: &str) -> Result { - return Ok(Cell::new(s)); - } -} - impl ToString for Cell { fn to_string(&self) -> String { return self.get_content(); diff --git a/src/main.rs b/src/main.rs index 59952de..82da8ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,5 +31,5 @@ fn main() { table.set_titles(row!["Title 1", "Title 2"]); table.set_format(FORMAT_DEFAULT); table.printstd(); - println!("{:?}", table); +// println!("{:#?}", table); } -- cgit v1.2.3