Skip to content

Commit d936ef7

Browse files
author
yggverse
committed
complete capacity argument
1 parent 5f06b45 commit d936ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn crawl(argument: &Argument, output: &Output) -> Result<(), Box<dyn Error>> {
104104
let subject = format!("{path}index.gmi");
105105

106106
let mut index = File::create(&subject)?;
107-
let mut data = Vec::with_capacity(10); // @TODO
107+
let mut data = Vec::with_capacity(argument.limit);
108108

109109
let mut total = 0;
110110
for file in read_dir(&path)? {

0 commit comments

Comments
 (0)