From 002c85329e2838d6504b7cc9cca6fe5e9f00860f Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Thu, 3 Jul 2025 23:15:19 +0200 Subject: [PATCH] feat(git): Remove the failure code from the error type Signed-off-by: Noah Knegt --- Cargo.lock | 2 +- git/Cargo.toml | 2 +- git/src/error.rs | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index baf0248..6caa71e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "git" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "command-with-spinner", diff --git a/git/Cargo.toml b/git/Cargo.toml index 0ef8928..0b3769a 100644 --- a/git/Cargo.toml +++ b/git/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "git" -version = "0.1.0" +version = "0.2.0" edition.workspace = true authors.workspace = true diff --git a/git/src/error.rs b/git/src/error.rs index 7685bc8..38f800c 100644 --- a/git/src/error.rs +++ b/git/src/error.rs @@ -1,9 +1,6 @@ /// Git operations error type #[derive(Debug, thiserror::Error)] pub enum GitError { - #[error("Command failed with exit code: {0}")] - Failed(i32), - #[error("Command failed without exit code")] FailedNoCode,