Skip to content

Commit eb102e4

Browse files
committed
feat: added human_panic
1 parent 9a4c750 commit eb102e4

File tree

3 files changed

+154
-0
lines changed

3 files changed

+154
-0
lines changed

Cargo.lock

Lines changed: 152 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ categories = ["command-line-utilities", "text-processing"]
1212
[dependencies]
1313
arboard = "3.4"
1414
clap = { version = "4.5", features = ["derive", "unicode"] }
15+
human-panic = "2.0"
1516
rand = "0.8"
1617

1718
[dev-dependencies]

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ struct Cli {
2020
}
2121

2222
fn main() {
23+
human_panic::setup_panic!();
2324
let args = Cli::parse();
2425
let text = args.words.join(" ");
2526
let output = if args.alternate {

0 commit comments

Comments
 (0)