Skip to content
This repository was archived by the owner on Feb 13, 2019. It is now read-only.

Update for latest Rust #11

Merged
merged 1 commit into from
Mar 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/shader_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ fn method_fill(cx: &mut ext::base::ExtCtxt,
Param::Special => quote_stmt!(cx, ()),
})
}));
let calls = calls.map_in_place(Option::unwrap);
cx.block_all(span, calls, None)
}

Expand Down Expand Up @@ -272,7 +273,7 @@ impl ItemDecorator for ShaderParam {
return;
}
};

// derive and push
let link_name = format!("_{}Link", item.ident.as_str());
let link_ident = context.ident_of(&link_name);
Expand Down