Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JsonDocCk Tool for rustdoc-json #81063

Merged
merged 5 commits into from
Jan 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Shift another panic into an exit
  • Loading branch information
CraftSpider committed Jan 19, 2021
commit a3df483974bd9832c2640a4dcbfd58fd9fa229cc
3 changes: 1 addition & 2 deletions src/tools/jsondocck/src/config.rs
Original file line number Diff line number Diff line change
@@ -18,8 +18,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
let message = format!("Usage: {} <doc-dir> <template>", argv0);
println!("{}", opts.usage(&message));
println!();
panic!()
std::process::exit(1);
}

let matches = opts.parse(args_).unwrap();