From 8aa3621034626114716dc7d26443bc39cd717715 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 25 Jul 2017 22:27:57 -0500 Subject: [PATCH] fix errors around the use of `super` in relative paths --- macros/src/trans.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/src/trans.rs b/macros/src/trans.rs index 94e7805e5a..39c9c6f5c2 100644 --- a/macros/src/trans.rs +++ b/macros/src/trans.rs @@ -514,12 +514,12 @@ fn tasks(app: &App, ownerships: &Ownerships, root: &mut Vec) { needs_threshold = true; fields.push(quote! { - pub #name: super::_resource::#name, + pub #name: ::_resource::#name, }); exprs.push(quote! { #name: { - super::_resource::#name::new() + ::_resource::#name::new() }, }); } @@ -592,8 +592,8 @@ fn tasks(app: &App, ownerships: &Ownerships, root: &mut Vec) { let priority = task.priority; if needs_threshold { - tys.push(quote!(&mut Threshold)); - exprs.push(quote!(&mut Threshold::new(#priority))); + tys.push(quote!(&mut #krate::Threshold)); + exprs.push(quote!(&mut #krate::Threshold::new(#priority))); } if has_resources {