File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::proto::ProtoError;
4
4
5
5
#[ derive( Debug ) ]
6
6
pub enum AgentError {
7
- //Ssh(ssh_key::Error),
8
7
Proto ( ProtoError ) ,
9
8
IO ( io:: Error ) ,
10
9
}
@@ -15,12 +14,6 @@ impl From<ProtoError> for AgentError {
15
14
}
16
15
}
17
16
18
- //impl From<ssh_key::Error> for AgentError {
19
- // fn from(e: ssh_key::Error) -> AgentError {
20
- // AgentError::Ssh(e)
21
- // }
22
- //}
23
-
24
17
impl From < io:: Error > for AgentError {
25
18
fn from ( e : io:: Error ) -> AgentError {
26
19
AgentError :: IO ( e)
@@ -30,7 +23,6 @@ impl From<io::Error> for AgentError {
30
23
impl std:: fmt:: Display for AgentError {
31
24
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
32
25
match self {
33
- //AgentError::Ssh(e) => write!(f, "Agent: Ssh key error: {e}"),
34
26
AgentError :: Proto ( proto) => write ! ( f, "Agent: Protocol error: {}" , proto) ,
35
27
AgentError :: IO ( error) => write ! ( f, "Agent: I/O error: {}" , error) ,
36
28
}
You can’t perform that action at this time.
0 commit comments