Skip to content

Commit

Permalink
Fixed gfx_macros for the latest Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Feb 19, 2015
1 parent 48958e5 commit 7f9d3f4
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 7f9d3f4

Please sign in to comment.