Skip to content

Commit c44265f

Browse files
authored
Merge pull request #40 from baloo/baloo/cleanup-refactor
error: cleanup after error refactor
2 parents 4b0debf + e5e06e4 commit c44265f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/error.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::proto::ProtoError;
44

55
#[derive(Debug)]
66
pub enum AgentError {
7-
//Ssh(ssh_key::Error),
87
Proto(ProtoError),
98
IO(io::Error),
109
}
@@ -15,12 +14,6 @@ impl From<ProtoError> for AgentError {
1514
}
1615
}
1716

18-
//impl From<ssh_key::Error> for AgentError {
19-
// fn from(e: ssh_key::Error) -> AgentError {
20-
// AgentError::Ssh(e)
21-
// }
22-
//}
23-
2417
impl From<io::Error> for AgentError {
2518
fn from(e: io::Error) -> AgentError {
2619
AgentError::IO(e)
@@ -30,7 +23,6 @@ impl From<io::Error> for AgentError {
3023
impl std::fmt::Display for AgentError {
3124
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
3225
match self {
33-
//AgentError::Ssh(e) => write!(f, "Agent: Ssh key error: {e}"),
3426
AgentError::Proto(proto) => write!(f, "Agent: Protocol error: {}", proto),
3527
AgentError::IO(error) => write!(f, "Agent: I/O error: {}", error),
3628
}

0 commit comments

Comments
 (0)