summaryrefslogtreecommitdiffstats
path: root/src/bin/mdbook-mermaid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/mdbook-mermaid.rs')
-rw-r--r--src/bin/mdbook-mermaid.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs
index 3cac40b..672bca6 100644
--- a/src/bin/mdbook-mermaid.rs
+++ b/src/bin/mdbook-mermaid.rs
@@ -72,7 +72,9 @@ fn handle_preprocessing() -> Result<(), Error> {
}
fn handle_supports(sub_args: &ArgMatches) -> ! {
- let renderer = sub_args.get_one::<String>("renderer").expect("Required argument");
+ let renderer = sub_args
+ .get_one::<String>("renderer")
+ .expect("Required argument");
let supported = Mermaid.supports_renderer(renderer);
// Signal whether the renderer is supported by exiting with 1 or 0.
@@ -84,7 +86,9 @@ fn handle_supports(sub_args: &ArgMatches) -> ! {
}
fn handle_install(sub_args: &ArgMatches) -> ! {
- let proj_dir = sub_args.get_one::<PathBuf>("dir").expect("Required argument");
+ let proj_dir = sub_args
+ .get_one::<PathBuf>("dir")
+ .expect("Required argument");
let config = proj_dir.join("book.toml");
if !config.exists() {