Add a Sized requirement to the Deserialize trait.

This commit is contained in:
Evgeny Safronov committed 2015-08-24 18:44:19 +03:00
1 parent 092ba6dae2
commit 8b1058b8ec
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ pub enum Type {
///////////////////////////////////////////////////////////////////////////////
pub trait Deserialize {
pub trait Deserialize: Sized {
/// Deserialize this value given this `Deserializer`.
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error>
where D: Deserializer;