diff --git a/ipc/codegen/src/codegen.rs b/ipc/codegen/src/codegen.rs index 253b298f4..582aa9332 100644 --- a/ipc/codegen/src/codegen.rs +++ b/ipc/codegen/src/codegen.rs @@ -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; diff --git a/ipc/rpc/src/binary.rs b/ipc/rpc/src/binary.rs index d16908146..3ace31b2f 100644 --- a/ipc/rpc/src/binary.rs +++ b/ipc/rpc/src/binary.rs @@ -272,7 +272,7 @@ pub fn deserialize_from(r: &mut R) -> Result try!(r.read(&mut data).map_err(|_| BinaryConvertError)); T::from_bytes(&data[..], &mut length_stack) - } + }, } } @@ -330,7 +330,7 @@ pub fn serialize_into(t: &T, w: &mut W) -> Result<(), BinaryConvertError> try!(w.write(&buffer[..]).map_err(|_| BinaryConvertError)); Ok(()) - } + }, } }