diff --git a/Cargo.toml b/Cargo.toml index 0542c01c4e..a7515fdedd 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 2fe6380e87..54637fe046 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.lines_any().map(|ref x| x.to_string()).collect(); + let content: Vec = string.lines().map(|ref x| x.to_string()).collect(); let mut width = 0; for cont in &content { let l = UnicodeWidthStr::width(&cont[..]);