Async closure is now stable.

This commit is contained in:
Tom Alexander 2025-02-07 20:51:31 -05:00
parent 8fd37cbf22
commit 463be34302
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ impl BlogPost {
) -> Result<BlogPost, CustomError> {
let post_id = post_dir.strip_prefix(posts_dir)?.as_os_str();
// Load all the *.org files under the post directory from disk into memory
let org_files = {
let mut ret = Vec::new();
let org_files_iter = get_org_files(post_dir).await?;
@ -43,6 +44,8 @@ impl BlogPost {
}
ret
};
// Parse all the *.org files
let parsed_org_files = {
let mut ret = Vec::new();
for (path, contents) in org_files.iter() {

View File

@ -1,5 +1,4 @@
#![feature(let_chains)]
#![feature(async_closure)]
use std::process::ExitCode;
use clap::Parser;