Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
remote-helper: Remove Unused Error Variants
Lorenz Leutgeb committed 2 months ago
commit 6d2a99e1aef4830877e1b1e1c72a3919c3fdb0dd
parent a69420b
2 files changed +0 -8
modified crates/radicle-remote-helper/src/push.rs
@@ -56,9 +56,6 @@ pub(super) enum Error {
    /// I/O error.
    #[error("i/o error: {0}")]
    Io(#[from] io::Error),
-
    /// A command exited with an error code.
-
    #[error("command '{0}' failed with status {1}")]
-
    CommandFailed(String, i32),
    /// Invalid reference name.
    #[error("invalid ref: {0}")]
    InvalidRef(#[from] radicle::git::fmt::Error),
@@ -98,9 +95,6 @@ pub(super) enum Error {
    /// Patch is empty.
    #[error("patch commits are already included in the base branch")]
    EmptyPatch,
-
    /// Missing canonical head.
-
    #[error("the canonical head is missing from your working copy; please pull before pushing")]
-
    MissingCanonicalHead(git::Oid),
    /// COB store error.
    #[error(transparent)]
    Cob(#[from] radicle::cob::store::Error),
modified crates/radicle-remote-helper/src/push/error.rs
@@ -14,8 +14,6 @@ pub(crate) enum CanonicalUnrecoverable {
    FindObjects(#[from] canonical::error::FindObjectsError),
    #[error(transparent)]
    HeadsDiverge(#[from] HeadsDiverge),
-
    #[error("failure while computing canonical reference: {source}")]
-
    Git { source: git::raw::Error },
}

#[derive(Debug, Error)]