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 /src/cell.rs | |
parent | e34ab9c806d63a3af955a74be1a9f1621bd154de (diff) |
Fixes for rust 1.4 (removed deprecated methods calls)
Diffstat (limited to 'src/cell.rs')
-rw-r--r-- | src/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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[..]);
|