Use fully qualified Result
type
If that is not the case, the generated code might attempt to use a custom `Result` type with incompatible type parameters.
This commit is contained in:
parent
a142d319e7
commit
784cfcd49e
@ -320,7 +320,7 @@ fn deserialize_newtype_struct(
|
|||||||
type Value = $ty;
|
type Value = $ty;
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn visit_newtype_struct<D>(&mut self, deserializer: &mut D) -> Result<Self::Value, D::Error>
|
fn visit_newtype_struct<D>(&mut self, deserializer: &mut D) -> ::std::result::Result<Self::Value, D::Error>
|
||||||
where D: ::serde::de::Deserializer,
|
where D: ::serde::de::Deserializer,
|
||||||
{
|
{
|
||||||
let value = try!(::serde::de::Deserialize::deserialize(deserializer));
|
let value = try!(::serde::de::Deserialize::deserialize(deserializer));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user