Add a Sized requirement to the Deserialize trait.

This commit is contained in:
Evgeny Safronov 2015-08-24 18:41:52 +03:00
parent 092ba6dae2
commit 8b1058b8ec

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;