Skip to content

Commit 2ae195f

Browse files
committed
Auto merge of #1075 - msiglreith:pr_macro, r=kvark
Fix pipeline definition macro `use $crate;` is not allowed due to recent restrictions and `use super::*;` won't import the gfx crate. (allowed in future but feature gated rust-lang/rfcs#1560) Closes #1070
2 parents 4d9c45d + 8c70b3c commit 2ae195f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/src/macros/pso.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ macro_rules! gfx_pipeline_base {
226226
$( $field:ident: $ty:ty, )*
227227
}) => {
228228
pub mod $module {
229-
use $crate;
230229
#[allow(unused_imports)]
231230
use super::*;
231+
use super::gfx;
232232
gfx_pipeline_inner!{ $(
233233
$field: $ty,
234234
)*}
@@ -242,9 +242,9 @@ macro_rules! gfx_pipeline {
242242
$( $field:ident: $ty:ty = $value:expr, )*
243243
}) => {
244244
pub mod $module {
245-
use $crate;
246245
#[allow(unused_imports)]
247246
use super::*;
247+
use super::gfx;
248248
gfx_pipeline_inner!{ $(
249249
$field: $ty,
250250
)*}

0 commit comments

Comments
 (0)