diff options
| author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-10-10 16:33:08 +1300 |
|---|---|---|
| committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-10-10 16:33:08 +1300 |
| commit | 36a653e04195503ff05121c72f8a105527d8a921 (patch) | |
| tree | 159e9716a6e7aada62c26a2d31bb7dade8cdb692 /src/main.rs | |
| parent | 5a034625f07731459a79590a910d2a5177f316d7 (diff) | |
| download | toaster-36a653e04195503ff05121c72f8a105527d8a921.zip | |
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.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
