Skip to content

Commit

Permalink
Merge pull request #40 from baloo/baloo/cleanup-refactor
Browse files Browse the repository at this point in the history
error: cleanup after error refactor
  • Loading branch information
wiktor-k authored Apr 8, 2024
2 parents 4b0debf + e5e06e4 commit c44265f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::proto::ProtoError;

#[derive(Debug)]
pub enum AgentError {
//Ssh(ssh_key::Error),
Proto(ProtoError),
IO(io::Error),
}
Expand All @@ -15,12 +14,6 @@ impl From<ProtoError> for AgentError {
}
}

//impl From<ssh_key::Error> for AgentError {
// fn from(e: ssh_key::Error) -> AgentError {
// AgentError::Ssh(e)
// }
//}

impl From<io::Error> for AgentError {
fn from(e: io::Error) -> AgentError {
AgentError::IO(e)
Expand All @@ -30,7 +23,6 @@ impl From<io::Error> for AgentError {
impl std::fmt::Display for AgentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
//AgentError::Ssh(e) => write!(f, "Agent: Ssh key error: {e}"),
AgentError::Proto(proto) => write!(f, "Agent: Protocol error: {}", proto),
AgentError::IO(error) => write!(f, "Agent: I/O error: {}", error),
}
Expand Down

0 comments on commit c44265f

Please sign in to comment.