some commas

This commit is contained in:
Nikolay Volf 2016-04-25 02:43:21 +03:00
parent fb82d185c7
commit 020b490a72
2 changed files with 5 additions and 5 deletions

View File

@ -52,14 +52,14 @@ pub fn expand_ipc_implementation(
_ => {
cx.span_err(meta_item.span, "`#[derive(Ipc)]` may only be applied to struct implementations");
return;
}
},
};
let builder = aster::AstBuilder::new().span(span);
let interface_map = match implement_interface(cx, &builder, &item, push) {
Ok(interface_map) => interface_map,
Err(Error) => { return; }
Err(Error) => { return; },
};
push_client(cx, &builder, &interface_map, push);
@ -733,7 +733,7 @@ fn implement_interface(
item.span,
"`#[derive(Ipc)]` may only be applied to item implementations");
return Err(Error);
}
},
};
let impl_generics = builder.from_generics(generics.clone()).build();
let where_clause = &impl_generics.where_clause;

View File

@ -272,7 +272,7 @@ pub fn deserialize_from<T, R>(r: &mut R) -> Result<T, BinaryConvertError>
try!(r.read(&mut data).map_err(|_| BinaryConvertError));
T::from_bytes(&data[..], &mut length_stack)
}
},
}
}
@ -330,7 +330,7 @@ pub fn serialize_into<T, W>(t: &T, w: &mut W) -> Result<(), BinaryConvertError>
try!(w.write(&buffer[..]).map_err(|_| BinaryConvertError));
Ok(())
}
},
}
}