diff options
author | Michael Bryan <michaelfbryan@gmail.com> | 2018-09-19 22:43:26 +0800 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2019-07-09 11:11:09 +0200 |
commit | 21ac7f30f493cb770eb85e34d032ecf15661a544 (patch) | |
tree | 683fcf8243399366dd105afda5d0b8263d1c30ee /src | |
parent | b1f6eb2fb52f4395e725b12380ab3525556f2784 (diff) |
Removed an expect()
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/mdbook-mermaid.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs index e672a03..9f173fa 100644 --- a/src/bin/mdbook-mermaid.rs +++ b/src/bin/mdbook-mermaid.rs @@ -34,8 +34,7 @@ fn main() { } fn handle_preprocessing() -> Result<(), Error> { - let (ctx, book) = CmdPreprocessor::parse_input(io::stdin()) - .expect("Couldn't parse the input"); + let (ctx, book) = CmdPreprocessor::parse_input(io::stdin())?; if ctx.mdbook_version != mdbook::MDBOOK_VERSION { // We should probably use the `semver` crate to check compatibility |