2017-05-03 23:52:35 -05:00
|
|
|
// rustfmt-max_width: 120
|
|
|
|
// rustfmt-comment_width: 110
|
|
|
|
|
|
|
|
impl Struct {
|
|
|
|
fn fun() {
|
|
|
|
let result = match <R::RequestResult as serde::Deserialize>::deserialize(&json) {
|
|
|
|
Ok(v) => v,
|
2017-07-11 07:53:48 -05:00
|
|
|
Err(e) => match <R::ErrorResult as serde::Deserialize>::deserialize(&json) {
|
|
|
|
Ok(v) => return Err(Error::with_json(v)),
|
|
|
|
Err(e2) => return Err(Error::with_json(e)),
|
|
|
|
},
|
2017-05-03 23:52:35 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|