Merge pull request #143 from 3Hren/master

Add a Sized requirement to the Deserialize trait.
This commit is contained in:
Erick Tryzelaar 2015-08-24 21:41:58 -07:00
commit 5711e3d860

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;