diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-07-02 16:07:00 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-07-02 16:07:00 +0100 |
commit | 83315bbded08efbfcd6b8a814ce24bf6fc580729 (patch) | |
tree | e0dccbe617310eefaec7904b350e60a7e4ff296c | |
parent | d534cf8333dd46d610e9f4fd2a64bef6aec5ba7d (diff) | |
download | subplot-83315bbded08efbfcd6b8a814ce24bf6fc580729.tar.gz |
(subplot): Use .unwrap_or()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | src/bin/subplot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs index f693a24..e9cb00a 100644 --- a/src/bin/subplot.rs +++ b/src/bin/subplot.rs @@ -350,7 +350,7 @@ impl Docgen { debug!("Executing pandoc to produce {}", self.output.display()); let r = pandoc.execute(); if let Err(pandoc::PandocError::Err(output)) = r { - let code = output.status.code().or(Some(127)).unwrap(); + let code = output.status.code().unwrap_or(127); let stderr = String::from_utf8_lossy(&output.stderr); error!("Failed to execute Pandoc: exit code {}", code); error!("{}", stderr.strip_suffix('\n').unwrap()); |