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:
Sebastian Thiel 2015-08-08 12:33:29 +02:00
parent a142d319e7
commit 784cfcd49e

View File

@ -320,7 +320,7 @@ fn deserialize_newtype_struct(
type Value = $ty;
#[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,
{
let value = try!(::serde::de::Deserialize::deserialize(deserializer));