1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-28 17:37:45 +00:00

treewide: streamline error handling; leverage thiserror and anyhow

This commit is contained in:
NotAShelf 2025-05-18 15:39:49 +03:00
parent 99fbfc0ea7
commit 32422f2b4f
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
7 changed files with 81 additions and 202 deletions

8
Cargo.lock generated
View file

@ -76,6 +76,12 @@ dependencies = [
"windows-sys",
]
[[package]]
name = "anyhow"
version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
[[package]]
name = "autocfg"
version = "1.4.0"
@ -539,6 +545,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
name = "superfreq"
version = "0.3.1"
dependencies = [
"anyhow",
"chrono",
"clap",
"ctrlc",
@ -547,6 +554,7 @@ dependencies = [
"log",
"num_cpus",
"serde",
"thiserror",
"toml",
]