Run cargo clippy

This commit is contained in:
Dheepak Krishnamurthy 2021-02-11 11:10:40 -07:00
parent c05b37cf6e
commit ee4854e7c6

View file

@ -48,13 +48,11 @@ fn main() -> Result<(), Box<dyn Error>> {
Err(error) => { Err(error) => {
if error.to_string().to_lowercase().contains("no such file or directory") { if error.to_string().to_lowercase().contains("no such file or directory") {
eprintln!( eprintln!(
"{}: Unable to find executable `task`: {}. Check that taskwarrior is installed correctly and try again.", "[taskwarrior-tui error]: Unable to find executable `task`: {}. Check that taskwarrior is installed correctly and try again.", error
"[taskwarrior-tui error]", error
); );
} else { } else {
eprintln!( eprintln!(
"{}: {}. Please report as a github issue on https://github.com/kdheepak/taskwarrior-tui", "[taskwarrior-tui error]: {}. Please report as a github issue on https://github.com/kdheepak/taskwarrior-tui", error
"[taskwarrior-tui error]", error
); );
} }
std::process::exit(1); std::process::exit(1);