merged with master

This commit is contained in:
debris 2016-10-31 01:07:13 +01:00
parent 08a2a93d9c
commit 260986da9c
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ impl Serializable for InventoryType {
}
impl Deserializable for InventoryType {
fn deserialize(reader: &mut Reader) -> Result<Self, ReaderError> where Self: Sized {
fn deserialize<T>(reader: &mut Reader<T>) -> Result<Self, ReaderError> where T: io::Read {
let t: u32 = try!(reader.read());
InventoryType::from_u32(t).ok_or(ReaderError::MalformedData)
}