mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
fix errors around the use of super
in relative paths
This commit is contained in:
parent
0e05682d09
commit
8aa3621034
1 changed files with 4 additions and 4 deletions
|
@ -514,12 +514,12 @@ fn tasks(app: &App, ownerships: &Ownerships, root: &mut Vec<Tokens>) {
|
||||||
needs_threshold = true;
|
needs_threshold = true;
|
||||||
|
|
||||||
fields.push(quote! {
|
fields.push(quote! {
|
||||||
pub #name: super::_resource::#name,
|
pub #name: ::_resource::#name,
|
||||||
});
|
});
|
||||||
|
|
||||||
exprs.push(quote! {
|
exprs.push(quote! {
|
||||||
#name: {
|
#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;
|
let priority = task.priority;
|
||||||
if needs_threshold {
|
if needs_threshold {
|
||||||
tys.push(quote!(&mut Threshold));
|
tys.push(quote!(&mut #krate::Threshold));
|
||||||
exprs.push(quote!(&mut Threshold::new(#priority)));
|
exprs.push(quote!(&mut #krate::Threshold::new(#priority)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if has_resources {
|
if has_resources {
|
||||||
|
|
Loading…
Reference in a new issue