Fix compilation with rust nightly (613e57b44) and syntex 0.7.0

This commit is contained in:
Erick Tryzelaar 2015-06-08 06:55:36 -07:00
parent 4e50c56542
commit ac3a3e922f
2 changed files with 6 additions and 6 deletions

View File

@ -24,11 +24,11 @@ pub fn expand_derive_deserialize(
cx: &mut ExtCtxt,
span: Span,
meta_item: &MetaItem,
annotatable: Annotatable,
annotatable: &Annotatable,
push: &mut FnMut(Annotatable)
) {
let item = match annotatable {
Annotatable::Item(item) => item,
let item = match *annotatable {
Annotatable::Item(ref item) => item,
_ => {
cx.span_err(
meta_item.span,

View File

@ -19,11 +19,11 @@ pub fn expand_derive_serialize(
cx: &mut ExtCtxt,
span: Span,
meta_item: &MetaItem,
annotatable: Annotatable,
annotatable: &Annotatable,
push: &mut FnMut(Annotatable)
) {
let item = match annotatable {
Annotatable::Item(item) => item,
let item = match *annotatable {
Annotatable::Item(ref item) => item,
_ => {
cx.span_err(
meta_item.span,