From d936ef78fa969b6427d897561ad4e101bd1f4090 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 12 Feb 2025 18:40:30 +0200 Subject: [PATCH] complete `capacity` argument --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e9f109a..893f05d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,7 +104,7 @@ fn crawl(argument: &Argument, output: &Output) -> Result<(), Box> { let subject = format!("{path}index.gmi"); let mut index = File::create(&subject)?; - let mut data = Vec::with_capacity(10); // @TODO + let mut data = Vec::with_capacity(argument.limit); let mut total = 0; for file in read_dir(&path)? {