mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix clippy
This commit is contained in:
parent
5f28eb3a74
commit
21c4f95fd9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue