-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fix most pedantic clippy warnings
closes #29 Co-authored-by: Andy Pymont <[email protected]>
- Loading branch information
1 parent
f46d1e2
commit d7af3dc
Showing
10 changed files
with
107 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
use crate::template::aoc_cli; | ||
use std::process; | ||
|
||
pub fn download_handler(day: u8) { | ||
pub fn handle(day: u8) { | ||
if aoc_cli::check().is_err() { | ||
eprintln!("command \"aoc\" not found or not callable. Try running \"cargo install aoc-cli\" to install it."); | ||
process::exit(1); | ||
} | ||
|
||
if let Err(e) = aoc_cli::download(day) { | ||
eprintln!("failed to call aoc-cli: {}", e); | ||
eprintln!("failed to call aoc-cli: {e}"); | ||
process::exit(1); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.