use {Parcel, Error, Settings};
use std::io::prelude::*;

use uuid::Uuid;

impl Parcel for Uuid
{
    fn read(read: &mut Read,
            settings: &Settings,
            _: &mut hint::Hints)
        -> Result<Self, Error> {
        let bytes: Result<Vec<u8>, _> = read.bytes().take(16).collect();
        let bytes = bytes?;

        Ok(Uuid::from_bytes(&bytes)?)
    }

    fn write(&self, write: &mut Write) -> Result<(), Error> {
        write.write(self.as_bytes())?;
        Ok(())
    }
}


use {Parcel, Error, Settings};
use hint;
use std::io::prelude::*;

use uuid::Uuid;

impl Parcel for Uuid
{
    const TYPE_NAME: &'static str = "Uuid";

    fn read(read: &mut Read,
            _: &Settings,
            _: &mut hint::Hints)
        -> Result<Self, Error> {
        let bytes: Result<Vec<u8>, _> = read.bytes().take(16).collect();
        let bytes = bytes?;

        Ok(Uuid::from_bytes(&bytes)?)
    }

    fn write(&self, write: &mut Write,
             _: &Settings) -> Result<(), Error> {
        write.write(self.as_bytes())?;
        Ok(())
    }
}


Fix the UUID Parcel implementation
Fix the UUID Parcel implementation
