Skip to content

Commit

Permalink
Merge pull request #576 from kvark/macroos
Browse files Browse the repository at this point in the history
Fixed gfx_macros for the latest Rust
  • Loading branch information
kvark committed Feb 19, 2015
2 parents 48958e5 + 7f9d3f4 commit 81ce8e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gfx_macros/shader_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl ItemDecorator for ShaderParam {
/// Decorator for `shader_param` attribute
fn expand(&self, context: &mut ext::base::ExtCtxt, span: codemap::Span,
meta_item: &ast::MetaItem, item: &ast::Item,
mut push: Box<FnMut(P<ast::Item>)>) {
push: &mut FnMut(P<ast::Item>)) {
// Insert the `gfx` reexport module
let path_root = super::extern_crate_hack(context, span, |i| (*push)(i));

Expand Down
2 changes: 1 addition & 1 deletion src/gfx_macros/vertex_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl ItemDecorator for VertexFormat {
/// Derive a `gfx::VertexFormat` implementation for the `struct`
fn expand(&self, context: &mut ext::base::ExtCtxt, span: codemap::Span,
meta_item: &ast::MetaItem, item: &ast::Item,
mut push: Box<FnMut(P<ast::Item>)>) {
push: &mut FnMut(P<ast::Item>)) {
// Insert the `gfx` reexport module
let path_root = super::extern_crate_hack(context, span, |i| (*push)(i));
let fixup = |item| {
Expand Down

0 comments on commit 81ce8e6

Please sign in to comment.