Skip to content
Snippets Groups Projects
Commit 8aa36210 authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

fix errors around the use of `super` in relative paths

parent 0e05682d
Branches
Tags
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment