From 36a653e04195503ff05121c72f8a105527d8a921 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Fri, 10 Oct 2025 16:33:08 +1300 Subject: Remove document parameter from functions The markdown document is already passed as a field on the page argument, so passing it in as a separate argument was redundant. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1ea25d2..e52aa10 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ fn main() { destination.push(&page.full_url); // Convert document to different formats. if export_html { - let html = generate_html(&page.document, page, &website); + let html = generate_html(page, &website); write_file(&html, &destination, "html", page.last_modified); } // Copy original markdown file. -- cgit v1.2.3-70-g09d2