diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-07-25 22:27:57 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-07-25 22:27:57 -0500 |
| commit | 8aa3621034626114716dc7d26443bc39cd717715 (patch) | |
| tree | e40c95579b3b2719c3d1cd75d4b4f97c7e6760df /macros/src/trans.rs | |
| parent | 0e05682d09b1372796322cd7c219a4fc637b9c5d (diff) | |
fix errors around the use of `super` in relative paths
Diffstat (limited to 'macros/src/trans.rs')
| -rw-r--r-- | macros/src/trans.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/trans.rs b/macros/src/trans.rs index 94e7805..39c9c6f 100644 --- a/macros/src/trans.rs +++ b/macros/src/trans.rs @@ -514,12 +514,12 @@ fn tasks(app: &App, ownerships: &Ownerships, root: &mut Vec<Tokens>) { 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<Tokens>) { 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 { |
