From af3924c0daced677a9d8a2956c84fbfb50cca5e9 Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Thu, 7 Sep 2023 01:05:26 +0200 Subject: [PATCH] chore: Clippy issues --- src/row.rs | 2 +- tests/all/alignment_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/row.rs b/src/row.rs index 0611d0c..456fe7a 100644 --- a/src/row.rs +++ b/src/row.rs @@ -129,7 +129,7 @@ mod tests { #[test] fn test_some_functions() { - let cells = vec!["one", "two", "three"]; + let cells = ["one", "two", "three"]; let mut row = Row::new(); for cell in cells.iter() { row.add_cell(Cell::new(cell)); diff --git a/tests/all/alignment_test.rs b/tests/all/alignment_test.rs index 7b07f42..f434854 100644 --- a/tests/all/alignment_test.rs +++ b/tests/all/alignment_test.rs @@ -21,7 +21,7 @@ fn cell_alignment() { ]) .add_row(vec!["Left", "Center", "Right"]); - let alignment = vec![ + let alignment = [ CellAlignment::Left, CellAlignment::Center, CellAlignment::Right,