Async closure is now stable.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user