diff --git a/src/lib.rs b/src/lib.rs index 000ac6d..daecebb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,7 @@ fn format_table_inner(data: Vec>, conf: &TableConfig) -> String { result } -fn valid(data: &Vec>, conf: &TableConfig) -> bool { +fn valid(data: &[Vec], conf: &TableConfig) -> bool { if data.len() == 0 { false } else if conf.width < 4 { @@ -149,7 +149,7 @@ fn truncate_widths(mut widths: Vec, conf: &TableConfig) -> Vec { widths } -fn format_line(row: &Vec, head: &str, delim: &str, tail: &str) -> String { +fn format_line(row: &[String], head: &str, delim: &str, tail: &str) -> String { let mut result = String::new(); result.push_str(head); for cell in row {