File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,12 @@ pub mod stream_reader;
53
53
pub enum Error {
54
54
/// And I/O error
55
55
Io ( io:: Error ) ,
56
- /// Socket mutex was poisoned
57
- SocketMutexPoisoned ,
58
- /// Not connected to peer
59
- SocketNotConnectedToPeer ,
60
56
}
61
57
62
58
impl fmt:: Display for Error {
63
59
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
64
60
match * self {
65
61
Error :: Io ( ref e) => fmt:: Display :: fmt ( e, f) ,
66
- Error :: SocketMutexPoisoned => f. write_str ( "socket mutex was poisoned" ) ,
67
- Error :: SocketNotConnectedToPeer => f. write_str ( "not connected to peer" ) ,
68
62
}
69
63
}
70
64
}
@@ -76,8 +70,7 @@ impl std::error::Error for Error {
76
70
use self :: Error :: * ;
77
71
78
72
match self {
79
- Io ( e) => Some ( e) ,
80
- SocketMutexPoisoned | SocketNotConnectedToPeer => None ,
73
+ Io ( e) => Some ( e)
81
74
}
82
75
}
83
76
}
You can’t perform that action at this time.
0 commit comments