Skip to content

Commit 4ab0be9

Browse files
committed
image: Drop unnecessary vec!
No need to allocate here. Drive by cleanup as I was porting other code to use comfy-table. Signed-off-by: Colin Walters <[email protected]>
1 parent ff0260a commit 4ab0be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/image.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ pub(crate) async fn list_entrypoint(
105105

106106
table
107107
.load_preset(NOTHING)
108-
.set_header(vec!["REPOSITORY", "TYPE"]);
108+
.set_header(["REPOSITORY", "TYPE"]);
109109

110110
for image in images {
111-
table.add_row(vec![image.image, image.image_type.to_string()]);
111+
table.add_row([image.image, image.image_type.to_string()]);
112112
}
113113

114114
println!("{table}");

0 commit comments

Comments
 (0)