diff options
author | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-11-04 11:39:12 +0100 |
---|---|---|
committer | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-11-04 11:39:12 +0100 |
commit | d499b48860de79733b41ad61f9f3b4657a614554 (patch) | |
tree | fe1414769778e58db8482786ab8d31b969914529 | |
parent | e34ab9c806d63a3af955a74be1a9f1621bd154de (diff) |
Fixes for rust 1.4 (removed deprecated methods calls)
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/cell.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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[..]);
|