summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-04 11:39:12 +0100
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-04 11:39:12 +0100
commitd499b48860de79733b41ad61f9f3b4657a614554 (patch)
treefe1414769778e58db8482786ab8d31b969914529
parente34ab9c806d63a3af955a74be1a9f1621bd154de (diff)
Fixes for rust 1.4 (removed deprecated methods calls)
-rw-r--r--Cargo.toml2
-rw-r--r--src/cell.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0542c01..a7515fd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "prettytable-rs"
-version = "0.2.0"
+version = "0.3.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/src/cell.rs b/src/cell.rs
index 2fe6380..54637fe 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -20,7 +20,7 @@ impl Cell {
/// Create a new `Cell` initialized with content from `string`.
/// Text alignment in cell is configurable with the `align` argument
pub fn new_align(string: &str, align: Align) -> Cell {
- let content: Vec<String> = string.lines_any().map(|ref x| x.to_string()).collect();
+ let content: Vec<String> = string.lines().map(|ref x| x.to_string()).collect();
let mut width = 0;
for cont in &content {
let l = UnicodeWidthStr::width(&cont[..]);