fix clippy
This commit is contained in:
@@ -43,7 +43,7 @@ fn process(_ctx: &PreprocessorContext, mut book: Book) -> Result<Book, Error> {
|
|||||||
chapter
|
chapter
|
||||||
.source_path
|
.source_path
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.unwrap_or(chapter.path.as_ref().unwrap())
|
.unwrap_or_else(|| chapter.path.as_ref().unwrap())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
chapter.content = new_content;
|
chapter.content = new_content;
|
||||||
|
|||||||
Reference in New Issue
Block a user