Changed display_items to take Vec<PathData>, which is passed, instead of [PathData]

This commit is contained in:
mtsoltan
2021-08-30 12:54:40 +02:00
parent b88db6a817
commit 0c690dda8d
+1 -1
View File
@@ -1409,7 +1409,7 @@ fn pad_left(string: String, count: usize) -> String {
format!("{:>width$}", string, width = count)
}
fn display_items(items: &[PathData], config: &Config, out: &mut BufWriter<Stdout>) {
fn display_items(items: &Vec<PathData>, config: &Config, out: &mut BufWriter<Stdout>) {
if config.format == Format::Long {
let (mut max_links, mut max_width) = (1, 1);
let mut total_size = 0;