diff options
author | Nick Cameron <ncameron@mozilla.com> | 2015-01-06 10:16:49 +1300 |
---|---|---|
committer | Nick Cameron <ncameron@mozilla.com> | 2015-01-06 14:20:48 +1300 |
commit | e0684e876954ad5a713e6f985570162cedcae8df (patch) | |
tree | d6f5720dca6438855b491cf1fb0959c78a38b6c2 /src/libserialize/serialize.rs | |
parent | 48f50e1e98691d74427e23e82694f528b3fb4d56 (diff) | |
download | rust-e0684e876954ad5a713e6f985570162cedcae8df.tar.gz |
Fallout
Diffstat (limited to 'src/libserialize/serialize.rs')
-rw-r--r-- | src/libserialize/serialize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserialize/serialize.rs b/src/libserialize/serialize.rs index 0646ee1758f..c317b967489 100644 --- a/src/libserialize/serialize.rs +++ b/src/libserialize/serialize.rs @@ -396,13 +396,13 @@ impl Decodable for () { } } -impl<'a, Sized? T: Encodable> Encodable for &'a T { +impl<'a, T: ?Sized + Encodable> Encodable for &'a T { fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> { (**self).encode(s) } } -impl<Sized? T: Encodable> Encodable for Box<T> { +impl<T: ?Sized + Encodable> Encodable for Box<T> { fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> { (**self).encode(s) } |