From 05a556f7cc92b7710f7b4f509be9376a0296b21e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Mar 2021 04:50:29 +0100 Subject: Add additional sysexits error codes for other errors Give types to the errors in `run()` and exit with appropriate error codes. Split out an additional error type so we can wrap errors from the non-main functions. Remove 'anyhow', replacing it with 'thiserror' now that we're using error types. --- Cargo.lock | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index f5844c4..e17605c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,12 +6,6 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" -[[package]] -name = "anyhow" -version = "1.0.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" - [[package]] name = "autocfg" version = "1.0.1" @@ -95,7 +89,6 @@ dependencies = [ name = "ottolangy" version = "0.0.1" dependencies = [ - "anyhow", "exitcode", "mailparse", "thiserror", -- cgit v1.2.3