Merge pull request #143 from 3Hren/master
Add a Sized requirement to the Deserialize trait.
This commit is contained in:
commit
5711e3d860
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user