diff options
author | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-08-12 22:46:28 +0200 |
---|---|---|
committer | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-08-12 22:56:00 +0200 |
commit | e34ab9c806d63a3af955a74be1a9f1621bd154de (patch) | |
tree | 217a454ce1a2afb3c647ce29181d9bad04b2d827 | |
parent | 3434a1d07c23aef3ef368713d3a6d21523398818 (diff) |
Updated crate version to 0.2.0
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/cell.rs | 8 | ||||
-rw-r--r-- | src/main.rs | 2 |
4 files changed, 3 insertions, 11 deletions
@@ -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"
@@ -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<Cell, Self::Err> {
- 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);
}
|