Async closure is now stable.
This commit is contained in:
		
							parent
							
								
									8fd37cbf22
								
							
						
					
					
						commit
						463be34302
					
				| @ -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() { | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| #![feature(let_chains)] | ||||
| #![feature(async_closure)] | ||||
| use std::process::ExitCode; | ||||
| 
 | ||||
| use clap::Parser; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander