diff options
-rw-r--r-- | src/output/details.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/details.rs b/src/output/details.rs index 4eb0580..49c3fd1 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -683,7 +683,7 @@ impl<U> Table<U> where U: Users { // necessary to maintain information about the previously-printed // lines, as the output will change based on whether the // *previous* entry was the last in its directory. - stack.resize(row.depth + 1, TreePart::Edge); + stack.reserve(row.depth + 1); stack[row.depth] = if row.last { TreePart::Corner } else { TreePart::Edge }; for i in 1 .. row.depth + 1 { |