Result needs to be fully qualified

Without this:

```
error[E0244]: wrong number of type arguments
  --> src/api/accounts.rs:19:10
   |
19 | #[derive(Serialize, Deserialize, Debug)]
   |          ^^^^^^^^^^ expected 1 type arguments, found 2
```
This commit is contained in:
David Tolnay
2016-09-07 16:25:22 -07:00
parent e85ca8411e
commit 2212bfbf2c
2 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -636,7 +636,7 @@ fn wrap_serialize_with(
}
impl $wrapper_generics _serde::ser::Serialize for $wrapper_ty $where_clause {
fn serialize<__S>(&self, __s: &mut __S) -> Result<(), __S::Error>
fn serialize<__S>(&self, __s: &mut __S) -> ::std::result::Result<(), __S::Error>
where __S: _serde::ser::Serializer
{
$path(self.value, __s)