From 8c70b3ce37419d58f5a73ee296ee7b4309f12250 Mon Sep 17 00:00:00 2001 From: msiglreith Date: Tue, 1 Nov 2016 15:34:32 +0100 Subject: [PATCH] Fix pipeline definition macro due to recent restrictions for $crate in macros --- src/render/src/macros/pso.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/src/macros/pso.rs b/src/render/src/macros/pso.rs index 5a0ebbc24f7..d1da431c78e 100644 --- a/src/render/src/macros/pso.rs +++ b/src/render/src/macros/pso.rs @@ -226,9 +226,9 @@ macro_rules! gfx_pipeline_base { $( $field:ident: $ty:ty, )* }) => { pub mod $module { - use $crate; #[allow(unused_imports)] use super::*; + use super::gfx; gfx_pipeline_inner!{ $( $field: $ty, )*} @@ -242,9 +242,9 @@ macro_rules! gfx_pipeline { $( $field:ident: $ty:ty = $value:expr, )* }) => { pub mod $module { - use $crate; #[allow(unused_imports)] use super::*; + use super::gfx; gfx_pipeline_inner!{ $( $field: $ty, )*}