1
Fork 0
mirror of https://github.com/RGBCube/dix synced 2025-07-30 21:27:45 +00:00

refactor: implement thiserror for better error handling

This commit is contained in:
NotAShelf 2025-05-05 02:11:18 +03:00
parent 2c6f84e8ac
commit dde5723cee
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
3 changed files with 209 additions and 132 deletions

21
Cargo.lock generated
View file

@ -131,6 +131,7 @@ version = "0.1.0"
dependencies = [
"clap",
"regex",
"thiserror",
"yansi",
]
@ -204,6 +205,26 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "thiserror"
version = "2.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "2.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "unicode-ident"
version = "1.0.18"