fix clippy

This commit is contained in:
Dustin J. Mitchell 2021-06-05 09:03:59 -04:00
parent 5f28eb3a74
commit 21c4f95fd9

View file

@ -43,7 +43,7 @@ fn process(_ctx: &PreprocessorContext, mut book: Book) -> Result<Book, Error> {
chapter
.source_path
.as_ref()
.unwrap_or(chapter.path.as_ref().unwrap())
.unwrap_or_else(|| chapter.path.as_ref().unwrap())
);
}
chapter.content = new_content;