Update to rust 2021

This commit is contained in:
2021-11-12 14:48:03 +01:00
parent a726a701e6
commit 7cc798fcab
4 changed files with 145 additions and 95 deletions

View File

@ -30,7 +30,7 @@ async fn dir(cfg: &Config, relative: PathBuf) -> Result<Vec<String>, Errors> {
let mut dir_tasks = vec![];
let mut file_tasks = vec![];
while let Some(entry) = walker.next_entry().await.with_location(&&template_path)? {
while let Some(entry) = walker.next_entry().await.with_location(&template_path)? {
let meta = entry.metadata().await.with_location(&entry.path())?;
let new_relative = relative.join(entry.file_name());