Skip to content

Commit

Permalink
fix derive debug
Browse files Browse the repository at this point in the history
  • Loading branch information
benluiwj committed Nov 23, 2024
1 parent 2670a61 commit aba3ce4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions check_diff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::str::Utf8Error;
use tracing::info;
use walkdir::WalkDir;

#[derive(Debug)]
pub enum CheckDiffError {
/// Git related errors
FailedGit(GitError),
Expand All @@ -27,12 +28,6 @@ pub enum CheckDiffError {
IO(std::io::Error),
}

impl Debug for CheckDiffError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("CheckDiffError").finish()
}
}

impl From<io::Error> for CheckDiffError {
fn from(error: io::Error) -> Self {
CheckDiffError::IO(error)
Expand All @@ -51,6 +46,7 @@ impl From<Utf8Error> for CheckDiffError {
}
}

#[derive(Debug)]
pub enum GitError {
FailedClone { stdout: Vec<u8>, stderr: Vec<u8> },
FailedRemoteAdd { stdout: Vec<u8>, stderr: Vec<u8> },
Expand Down

0 comments on commit aba3ce4

Please sign in to comment.