- impl $type {
- fn __decodable__impl__hack() {
- mod __more_hacks_because__self_doesnt_work_in_functions {
- extern crate serialize;
- use self::serialize::{Decodable, Decoder};
- impl Decodable for super::$type {
- fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error> {
- d.read_u32().map(Self::from)
- }
- }
- }
+ impl ::rustc_serialize::Decodable for $type {
+ fn decode<D: ::rustc_serialize::Decoder>(d: &mut D) -> Result<Self, D::Error> {
+ d.read_u32().map(Self::from)