diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs index 672bca6..f739265 100644 --- a/src/bin/mdbook-mermaid.rs +++ b/src/bin/mdbook-mermaid.rs @@ -87,8 +87,9 @@ fn handle_supports(sub_args: &ArgMatches) -> ! { fn handle_install(sub_args: &ArgMatches) -> ! { let proj_dir = sub_args - .get_one::("dir") + .get_one::("dir") .expect("Required argument"); + let proj_dir = PathBuf::from(proj_dir); let config = proj_dir.join("book.toml"); if !config.exists() {