Skip to content

Commit

Permalink
Fix new linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Feb 13, 2021
1 parent e1edb46 commit c95b317
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,14 @@ fn panic_handler(panic_info: &panic::PanicInfo) {

// Panic message
eprintln!("Panic message: <{:#?}>", panic_info);
eprintln!("");
eprintln!();

// Backtrace
eprintln!("{:?}", Backtrace::new());

eprintln!("Riff version: {}", GIT_VERSION);

eprintln!("");
eprintln!();
eprintln!("Command line arguments: {:?}", env::args());

eprintln!("\n-^-^-^------- END OF RIFF CRASH REPORT -------^-^-^-\n",);
Expand Down Expand Up @@ -401,21 +401,21 @@ fn main() {
eprintln!(
"ERROR: -b is only supported when diffing two named paths (\"riff -b a.txt b.txt\")"
);
eprintln!("");
eprintln!();
print_help(&mut io::stderr());
exit(1);
}

if args.len() != 1 {
eprintln!("ERROR: Unknown command line: {:?}", args);
eprintln!("");
eprintln!();
print_help(&mut io::stderr());
exit(1);
}

if stdin_isatty() {
eprintln!("ERROR: Expected input from a pipe");
eprintln!("");
eprintln!();
print_help(&mut io::stderr());
exit(1);
}
Expand Down

0 comments on commit c95b317

Please sign in to comment.