Merge pull request #279 from jwilm/fix-deserialize-with-result
Fix `deserialize_with` in module with Result alias
This commit is contained in:
commit
48dd47b2b7
@ -619,7 +619,7 @@ fn wrap_deserialize_with(cx: &ExtCtxt,
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl $generics ::serde::de::Deserialize for $ty_path $where_clause {
|
impl $generics ::serde::de::Deserialize for $ty_path $where_clause {
|
||||||
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error>
|
fn deserialize<D>(deserializer: &mut D) -> ::std::result::Result<Self, D::Error>
|
||||||
where D: ::serde::de::Deserializer
|
where D: ::serde::de::Deserializer
|
||||||
{
|
{
|
||||||
let value = try!($path(deserializer));
|
let value = try!($path(deserializer));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user