File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,4 @@ default-features = false
5757# # DEBUG patch.
5858# [patch.crates-io]
5959# chamomile = { git = "https://github.com/postsilicondev/chamomile" }
60- # chamomile_types = { git = "https://github.com/postsilicondev/chamomile" }
60+ # chamomile_types = { git = "https://github.com/postsilicondev/chamomile" }
Original file line number Diff line number Diff line change @@ -167,12 +167,6 @@ impl Config {
167167 }
168168}
169169
170- #[ derive( Serialize , Deserialize , Debug ) ]
171- pub struct RawUpper {
172- addr : SocketAddr ,
173- group_id : String ,
174- }
175-
176170/// parse raw file content to Config.
177171#[ derive( Serialize , Deserialize , Debug ) ]
178172pub struct RawConfig {
Original file line number Diff line number Diff line change @@ -31,8 +31,14 @@ impl From<std::io::Error> for RpcError {
3131 }
3232}
3333
34- impl From < bincode:: Error > for RpcError {
35- fn from ( e : bincode:: Error ) -> RpcError {
34+ impl From < bincode:: error:: DecodeError > for RpcError {
35+ fn from ( e : bincode:: error:: DecodeError ) -> RpcError {
36+ RpcError :: Custom ( format ! ( "{}" , e) )
37+ }
38+ }
39+
40+ impl From < bincode:: error:: EncodeError > for RpcError {
41+ fn from ( e : bincode:: error:: EncodeError ) -> RpcError {
3642 RpcError :: Custom ( format ! ( "{}" , e) )
3743 }
3844}
You can’t perform that action at this time.
0 commit comments